186 GB
47,027 files
Updated 3 months 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
186 GB
Files
47,027
Last updated
May 1
Pre-warmed CDN
US EU US EU

Contributors