MIF_E31222519/API/node_modules/call-bound
MOH. DANI KURNIAWAN SUGIARTO c0b8fc8fee first commit 2025-05-15 16:08:48 +07:00
..
.github first commit 2025-05-15 16:08:48 +07:00
test first commit 2025-05-15 16:08:48 +07:00
.eslintrc first commit 2025-05-15 16:08:48 +07:00
.nycrc first commit 2025-05-15 16:08:48 +07:00
CHANGELOG.md first commit 2025-05-15 16:08:48 +07:00
LICENSE first commit 2025-05-15 16:08:48 +07:00
README.md first commit 2025-05-15 16:08:48 +07:00
index.d.ts first commit 2025-05-15 16:08:48 +07:00
index.js first commit 2025-05-15 16:08:48 +07:00
package.json first commit 2025-05-15 16:08:48 +07:00
tsconfig.json first commit 2025-05-15 16:08:48 +07:00

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