www_circl/node_modules/call-bound
2025-05-02 15:42:14 +02:00
..
.github base project 2025-05-02 15:42:14 +02:00
test base project 2025-05-02 15:42:14 +02:00
.eslintrc base project 2025-05-02 15:42:14 +02:00
.nycrc base project 2025-05-02 15:42:14 +02:00
CHANGELOG.md base project 2025-05-02 15:42:14 +02:00
index.d.ts base project 2025-05-02 15:42:14 +02:00
index.js base project 2025-05-02 15:42:14 +02:00
LICENSE base project 2025-05-02 15:42:14 +02:00
package.json base project 2025-05-02 15:42:14 +02:00
README.md base project 2025-05-02 15:42:14 +02:00
tsconfig.json base project 2025-05-02 15:42:14 +02: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