tkd-api/node_modules/dunder-proto
klaas a662820f3f anpassungen 2025-04-12 21:51:40 +02:00
..
.github anpassungen 2025-04-12 21:51:40 +02:00
test anpassungen 2025-04-12 21:51:40 +02:00
.eslintrc anpassungen 2025-04-12 21:51:40 +02:00
.nycrc anpassungen 2025-04-12 21:51:40 +02:00
CHANGELOG.md anpassungen 2025-04-12 21:51:40 +02:00
LICENSE anpassungen 2025-04-12 21:51:40 +02:00
README.md anpassungen 2025-04-12 21:51:40 +02:00
get.d.ts anpassungen 2025-04-12 21:51:40 +02:00
get.js anpassungen 2025-04-12 21:51:40 +02:00
package.json anpassungen 2025-04-12 21:51:40 +02:00
set.d.ts anpassungen 2025-04-12 21:51:40 +02:00
set.js anpassungen 2025-04-12 21:51:40 +02:00
tsconfig.json anpassungen 2025-04-12 21:51:40 +02: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