tasks_manager/frontend/node_modules/dunder-proto
2025-02-10 07:20:15 +03:00
..
.github Добавление frontend 2025-02-10 07:20:15 +03:00
test Добавление frontend 2025-02-10 07:20:15 +03:00
.eslintrc Добавление frontend 2025-02-10 07:20:15 +03:00
.nycrc Добавление frontend 2025-02-10 07:20:15 +03:00
CHANGELOG.md Добавление frontend 2025-02-10 07:20:15 +03:00
get.d.ts Добавление frontend 2025-02-10 07:20:15 +03:00
get.js Добавление frontend 2025-02-10 07:20:15 +03:00
LICENSE Добавление frontend 2025-02-10 07:20:15 +03:00
package.json Добавление frontend 2025-02-10 07:20:15 +03:00
README.md Добавление frontend 2025-02-10 07:20:15 +03:00
set.d.ts Добавление frontend 2025-02-10 07:20:15 +03:00
set.js Добавление frontend 2025-02-10 07:20:15 +03:00
tsconfig.json Добавление frontend 2025-02-10 07:20:15 +03: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