Docker-ImageManagementOptim.../node_modules/dunder-proto
Syifa bbb8bb07ad Image Size Optimization Challenge 2025-08-11 16:51:06 +07:00
..
.github Image Size Optimization Challenge 2025-08-11 16:51:06 +07:00
test Image Size Optimization Challenge 2025-08-11 16:51:06 +07:00
.eslintrc Image Size Optimization Challenge 2025-08-11 16:51:06 +07:00
.nycrc Image Size Optimization Challenge 2025-08-11 16:51:06 +07:00
CHANGELOG.md Image Size Optimization Challenge 2025-08-11 16:51:06 +07:00
LICENSE Image Size Optimization Challenge 2025-08-11 16:51:06 +07:00
README.md Image Size Optimization Challenge 2025-08-11 16:51:06 +07:00
get.d.ts Image Size Optimization Challenge 2025-08-11 16:51:06 +07:00
get.js Image Size Optimization Challenge 2025-08-11 16:51:06 +07:00
package.json Image Size Optimization Challenge 2025-08-11 16:51:06 +07:00
set.d.ts Image Size Optimization Challenge 2025-08-11 16:51:06 +07:00
set.js Image Size Optimization Challenge 2025-08-11 16:51:06 +07:00
tsconfig.json Image Size Optimization Challenge 2025-08-11 16:51:06 +07: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