mmpSearch/assets/js/creations/server/node_modules/dunder-proto
JotaChina 07562989cf
Deploy / Deploy (push) Successful in 1m16s Details
sync mode on
2025-10-26 16:43:01 -03:00
..
.github sync mode on 2025-10-26 16:43:01 -03:00
test sync mode on 2025-10-26 16:43:01 -03:00
.eslintrc sync mode on 2025-10-26 16:43:01 -03:00
.nycrc sync mode on 2025-10-26 16:43:01 -03:00
CHANGELOG.md sync mode on 2025-10-26 16:43:01 -03:00
LICENSE sync mode on 2025-10-26 16:43:01 -03:00
README.md sync mode on 2025-10-26 16:43:01 -03:00
get.d.ts sync mode on 2025-10-26 16:43:01 -03:00
get.js sync mode on 2025-10-26 16:43:01 -03:00
package.json sync mode on 2025-10-26 16:43:01 -03:00
set.d.ts sync mode on 2025-10-26 16:43:01 -03:00
set.js sync mode on 2025-10-26 16:43:01 -03:00
tsconfig.json sync mode on 2025-10-26 16:43:01 -03:00

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