186 GB
47,027 files
Updated 3 months ago
Name
Size
.github
test
.eslintrc138 Bytes
xet
.nycrc139 Bytes
xet
CHANGELOG.md2.88 kB
xet
LICENSE1.07 kB
xet
README.md1.9 kB
xet
index.d.ts4.65 kB
xet
index.js687 Bytes
xet
package.json2.51 kB
xet
tsconfig.json137 Bytes
xet
README.md

call-bound Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

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

Contributors