codigo0/backend/node_modules/dunder-proto
planetazuzu 0201f16cf4
Some checks are pending
Auto Deploy to Server / deploy (push) Waiting to run
Update lab configuration 2026-03-22
2026-03-22 22:50:29 +01:00
..
.github Update lab configuration 2026-03-22 2026-03-22 22:50:29 +01:00
test Update lab configuration 2026-03-22 2026-03-22 22:50:29 +01:00
.eslintrc Update lab configuration 2026-03-22 2026-03-22 22:50:29 +01:00
.nycrc Update lab configuration 2026-03-22 2026-03-22 22:50:29 +01:00
CHANGELOG.md Update lab configuration 2026-03-22 2026-03-22 22:50:29 +01:00
get.d.ts Update lab configuration 2026-03-22 2026-03-22 22:50:29 +01:00
get.js Update lab configuration 2026-03-22 2026-03-22 22:50:29 +01:00
LICENSE Update lab configuration 2026-03-22 2026-03-22 22:50:29 +01:00
package.json Update lab configuration 2026-03-22 2026-03-22 22:50:29 +01:00
README.md Update lab configuration 2026-03-22 2026-03-22 22:50:29 +01:00
set.d.ts Update lab configuration 2026-03-22 2026-03-22 22:50:29 +01:00
set.js Update lab configuration 2026-03-22 2026-03-22 22:50:29 +01:00
tsconfig.json Update lab configuration 2026-03-22 2026-03-22 22:50:29 +01: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