3.85 GB
70,867 files
Updated 17 days ago
Name
Size
test
.github
tsconfig.json116 Bytes
xet
set.js1.28 kB
xet
set.d.ts144 Bytes
xet
package.json2.11 kB
xet
get.js980 Bytes
xet
get.d.ts121 Bytes
xet
README.md1.91 kB
xet
LICENSE1.07 kB
xet
CHANGELOG.md1.55 kB
xet
.nycrc216 Bytes
xet
.eslintrc43 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
3.85 GB
Files
70,867
Last updated
Nov 3
Pre-warmed CDN
US EU US EU

Contributors