Quantumbraid's picture
|
download
raw
1.91 kB

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

Xet Storage Details

Size:
1.91 kB
·
Xet hash:
c328033d322160d7d3bcd1c5d13896a3943550b1982138b35df5d3d491319bd3

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.