coconews/frontend/node_modules/dunder-proto
2026-03-28 18:30:07 +01:00
..
.github go integration and wikipedia 2026-03-28 18:30:07 +01:00
test go integration and wikipedia 2026-03-28 18:30:07 +01:00
.eslintrc go integration and wikipedia 2026-03-28 18:30:07 +01:00
.nycrc go integration and wikipedia 2026-03-28 18:30:07 +01:00
CHANGELOG.md go integration and wikipedia 2026-03-28 18:30:07 +01:00
get.d.ts go integration and wikipedia 2026-03-28 18:30:07 +01:00
get.js go integration and wikipedia 2026-03-28 18:30:07 +01:00
LICENSE go integration and wikipedia 2026-03-28 18:30:07 +01:00
package.json go integration and wikipedia 2026-03-28 18:30:07 +01:00
README.md go integration and wikipedia 2026-03-28 18:30:07 +01:00
set.d.ts go integration and wikipedia 2026-03-28 18:30:07 +01:00
set.js go integration and wikipedia 2026-03-28 18:30:07 +01:00
tsconfig.json go integration and wikipedia 2026-03-28 18:30:07 +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