iching-broker-level2/node_modules/dunder-proto
Christopher Hase b27a419c2f
All checks were successful
ci / build (push) Successful in 1m33s
add http-server part 5
2025-04-09 11:10:36 +02:00
..
.github add http-server part 5 2025-04-09 11:10:36 +02:00
test add http-server part 5 2025-04-09 11:10:36 +02:00
.eslintrc add http-server part 5 2025-04-09 11:10:36 +02:00
.nycrc add http-server part 5 2025-04-09 11:10:36 +02:00
CHANGELOG.md add http-server part 5 2025-04-09 11:10:36 +02:00
get.d.ts add http-server part 5 2025-04-09 11:10:36 +02:00
get.js add http-server part 5 2025-04-09 11:10:36 +02:00
LICENSE add http-server part 5 2025-04-09 11:10:36 +02:00
package.json add http-server part 5 2025-04-09 11:10:36 +02:00
README.md add http-server part 5 2025-04-09 11:10:36 +02:00
set.d.ts add http-server part 5 2025-04-09 11:10:36 +02:00
set.js add http-server part 5 2025-04-09 11:10:36 +02:00
tsconfig.json add http-server part 5 2025-04-09 11:10:36 +02: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