You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
def 28b1c86b18 Initial commit – monitor dashboard and oracle foundation 1 week ago
..
.github Initial commit – monitor dashboard and oracle foundation 1 week ago
test Initial commit – monitor dashboard and oracle foundation 1 week ago
.eslintrc Initial commit – monitor dashboard and oracle foundation 1 week ago
.nycrc Initial commit – monitor dashboard and oracle foundation 1 week ago
CHANGELOG.md Initial commit – monitor dashboard and oracle foundation 1 week ago
LICENSE Initial commit – monitor dashboard and oracle foundation 1 week ago
README.md Initial commit – monitor dashboard and oracle foundation 1 week ago
get.d.ts Initial commit – monitor dashboard and oracle foundation 1 week ago
get.js Initial commit – monitor dashboard and oracle foundation 1 week ago
package.json Initial commit – monitor dashboard and oracle foundation 1 week ago
set.d.ts Initial commit – monitor dashboard and oracle foundation 1 week ago
set.js Initial commit – monitor dashboard and oracle foundation 1 week ago
tsconfig.json Initial commit – monitor dashboard and oracle foundation 1 week ago

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