minm-api/node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound
2025-05-23 10:36:26 +08:00
..
.github first commit 2025-05-23 10:36:26 +08:00
test first commit 2025-05-23 10:36:26 +08:00
.eslintrc first commit 2025-05-23 10:36:26 +08:00
.nycrc first commit 2025-05-23 10:36:26 +08:00
CHANGELOG.md first commit 2025-05-23 10:36:26 +08:00
index.d.ts first commit 2025-05-23 10:36:26 +08:00
index.js first commit 2025-05-23 10:36:26 +08:00
LICENSE first commit 2025-05-23 10:36:26 +08:00
package.json first commit 2025-05-23 10:36:26 +08:00
README.md first commit 2025-05-23 10:36:26 +08:00
tsconfig.json first commit 2025-05-23 10:36:26 +08:00

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