Marketing_Digital/Template-01/node_modules/dunder-proto
2026-05-13 21:21:04 -03:00
..
.github fix: add react-is 2026-05-13 21:21:04 -03:00
test fix: add react-is 2026-05-13 21:21:04 -03:00
.eslintrc fix: add react-is 2026-05-13 21:21:04 -03:00
.nycrc fix: add react-is 2026-05-13 21:21:04 -03:00
CHANGELOG.md fix: add react-is 2026-05-13 21:21:04 -03:00
get.d.ts fix: add react-is 2026-05-13 21:21:04 -03:00
get.js fix: add react-is 2026-05-13 21:21:04 -03:00
LICENSE fix: add react-is 2026-05-13 21:21:04 -03:00
package.json fix: add react-is 2026-05-13 21:21:04 -03:00
README.md fix: add react-is 2026-05-13 21:21:04 -03:00
set.d.ts fix: add react-is 2026-05-13 21:21:04 -03:00
set.js fix: add react-is 2026-05-13 21:21:04 -03:00
tsconfig.json fix: add react-is 2026-05-13 21:21:04 -03:00

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