openforce/frontend/node_modules/dunder-proto
2026-09-26 07:44:38 +00:00
..
.github fix(custom_objects): allow blank=True on CustomRecord.data 2026-09-26 07:44:38 +00:00
test fix(custom_objects): allow blank=True on CustomRecord.data 2026-09-26 07:44:38 +00:00
.eslintrc fix(custom_objects): allow blank=True on CustomRecord.data 2026-09-26 07:44:38 +00:00
.nycrc fix(custom_objects): allow blank=True on CustomRecord.data 2026-09-26 07:44:38 +00:00
CHANGELOG.md fix(custom_objects): allow blank=True on CustomRecord.data 2026-09-26 07:44:38 +00:00
get.d.ts fix(custom_objects): allow blank=True on CustomRecord.data 2026-09-26 07:44:38 +00:00
get.js fix(custom_objects): allow blank=True on CustomRecord.data 2026-09-26 07:44:38 +00:00
LICENSE fix(custom_objects): allow blank=True on CustomRecord.data 2026-09-26 07:44:38 +00:00
package.json fix(custom_objects): allow blank=True on CustomRecord.data 2026-09-26 07:44:38 +00:00
README.md fix(custom_objects): allow blank=True on CustomRecord.data 2026-09-26 07:44:38 +00:00
set.d.ts fix(custom_objects): allow blank=True on CustomRecord.data 2026-09-26 07:44:38 +00:00
set.js fix(custom_objects): allow blank=True on CustomRecord.data 2026-09-26 07:44:38 +00:00
tsconfig.json fix(custom_objects): allow blank=True on CustomRecord.data 2026-09-26 07:44:38 +00: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