Buckets:
186 GB
47,027 files
Updated 3 months ago
Ctrl+K
| Name | Size | Uploaded | Xet hash |
|---|---|---|---|
| .github | 1 items | ||
| test | 1 items | ||
| .eslintrc | 138 Bytes xet | 6e0fd365 | |
| .nycrc | 139 Bytes xet | 4fec1c2b | |
| CHANGELOG.md | 2.88 kB xet | 393243c6 | |
| LICENSE | 1.07 kB xet | c0d5f000 | |
| README.md | 1.9 kB xet | 28583550 | |
| index.d.ts | 4.65 kB xet | 5aedb5a5 | |
| index.js | 687 Bytes xet | ea02b7cf | |
| package.json | 2.51 kB xet | b3029af2 | |
| tsconfig.json | 137 Bytes xet | f8005ad0 |
call-bound
Robust call-bound JavaScript intrinsics, using call-bind and get-intrinsic.
Getting started
npm install --save call-bound
Usage/Examples
const assert = require('assert');
const callBound = require('call-bound');
const slice = callBound('Array.prototype.slice');
delete Function.prototype.call;
delete Function.prototype.bind;
delete Array.prototype.slice;
assert.deepEqual(slice([1, 2, 3, 4], 1, -1), [2, 3]);
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
