Gogs df670eaa27 first commit 3 tygodni temu
..
.github df670eaa27 first commit 3 tygodni temu
test df670eaa27 first commit 3 tygodni temu
.eslintrc df670eaa27 first commit 3 tygodni temu
.nycrc df670eaa27 first commit 3 tygodni temu
CHANGELOG.md df670eaa27 first commit 3 tygodni temu
LICENSE df670eaa27 first commit 3 tygodni temu
README.md df670eaa27 first commit 3 tygodni temu
get.d.ts df670eaa27 first commit 3 tygodni temu
get.js df670eaa27 first commit 3 tygodni temu
package.json df670eaa27 first commit 3 tygodni temu
set.d.ts df670eaa27 first commit 3 tygodni temu
set.js df670eaa27 first commit 3 tygodni temu
tsconfig.json df670eaa27 first commit 3 tygodni temu

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