866 MB
3,984 files
Updated about 1 month ago
Name
Size
.github
test
.eslintrc43 Bytes
xet
.nycrc216 Bytes
xet
CHANGELOG.md1.55 kB
xet
LICENSE1.07 kB
xet
README.md1.91 kB
xet
get.d.ts121 Bytes
xet
get.js980 Bytes
xet
package.json2.11 kB
xet
set.d.ts144 Bytes
xet
set.js1.28 kB
xet
tsconfig.json116 Bytes
xet
README.md

dunder-proto Version Badge

github actions coverage License Downloads

npm badge

If available, the Object.prototype.__proto__ accessor and mutator, call-bound.

Getting started

npm install --save dunder-proto

Usage/Examples

const assert = require('assert');
const getDunder = require('dunder-proto/get');
const setDunder = require('dunder-proto/set');

const obj = {};

assert.equal('toString' in obj, true);
assert.equal(getDunder(obj), Object.prototype);

setDunder(obj, null);

assert.equal('toString' in obj, false);
assert.equal(getDunder(obj), null);

Tests

Clone the repo, npm install, and run npm test

Total size
866 MB
Files
3,984
Last updated
Sep 12
Pre-warmed CDN
US EU US EU

Contributors