dunder-proto-x
v1.0.0
Published
If available, the `Object.prototype.__proto__` accessor and mutator, call-bound
Readme
dunder-proto-x
If available, the Object.prototype.__proto__ accessor and mutator, call-bound.
Getting started
npm install --save dunder-proto-xUsage/Examples
const assert = require('assert')
const getDunder = require('dunder-proto-x/get')
const setDunder = require('dunder-proto-x/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
