Buckets:
186 GB
47,027 files
Updated 3 months ago
Ctrl+K
| Name | Size | Uploaded | Xet hash |
|---|---|---|---|
| .github | 1 items | ||
| test | 3 items | ||
| .eslintrc | 43 Bytes xet | c9eddeea | |
| .nycrc | 216 Bytes xet | 4448e85a | |
| CHANGELOG.md | 1.55 kB xet | d06869e4 | |
| LICENSE | 1.07 kB xet | a7482744 | |
| README.md | 1.91 kB xet | c328033d | |
| get.d.ts | 121 Bytes xet | 5e7e302f | |
| get.js | 980 Bytes xet | a3f82d16 | |
| package.json | 2.11 kB xet | 2c594118 | |
| set.d.ts | 144 Bytes xet | 6593a17d | |
| set.js | 1.28 kB xet | cade8aee | |
| tsconfig.json | 116 Bytes xet | b09c76d5 |
dunder-proto
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
- Total size
- 186 GB
- Files
- 47,027
- Last updated
- May 1
- Pre-warmed CDN
- US EU US EU
