the-tip-top-backend/backend/node_modules/dunder-proto
2025-10-25 03:29:40 +02:00
..
.github push 2025-10-25 03:29:40 +02:00
test push 2025-10-25 03:29:40 +02:00
.eslintrc push 2025-10-25 03:29:40 +02:00
.nycrc push 2025-10-25 03:29:40 +02:00
CHANGELOG.md push 2025-10-25 03:29:40 +02:00
get.d.ts push 2025-10-25 03:29:40 +02:00
get.js push 2025-10-25 03:29:40 +02:00
LICENSE push 2025-10-25 03:29:40 +02:00
package.json push 2025-10-25 03:29:40 +02:00
README.md push 2025-10-25 03:29:40 +02:00
set.d.ts push 2025-10-25 03:29:40 +02:00
set.js push 2025-10-25 03:29:40 +02:00
tsconfig.json push 2025-10-25 03:29:40 +02: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