seven c79d79ff8e 3333 пре 2 дана
..
.github c79d79ff8e 3333 пре 2 дана
test c79d79ff8e 3333 пре 2 дана
.eslintrc c79d79ff8e 3333 пре 2 дана
.nycrc c79d79ff8e 3333 пре 2 дана
CHANGELOG.md c79d79ff8e 3333 пре 2 дана
LICENSE c79d79ff8e 3333 пре 2 дана
README.md c79d79ff8e 3333 пре 2 дана
get.d.ts c79d79ff8e 3333 пре 2 дана
get.js c79d79ff8e 3333 пре 2 дана
package.json c79d79ff8e 3333 пре 2 дана
set.d.ts c79d79ff8e 3333 пре 2 дана
set.js c79d79ff8e 3333 пре 2 дана
tsconfig.json c79d79ff8e 3333 пре 2 дана

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