splid-js-googlesheet-updater/node_modules/call-bound
2025-05-27 21:06:02 +02:00
..
.github initial commit 2025-05-27 21:06:02 +02:00
test initial commit 2025-05-27 21:06:02 +02:00
.eslintrc initial commit 2025-05-27 21:06:02 +02:00
.nycrc initial commit 2025-05-27 21:06:02 +02:00
CHANGELOG.md initial commit 2025-05-27 21:06:02 +02:00
index.d.ts initial commit 2025-05-27 21:06:02 +02:00
index.js initial commit 2025-05-27 21:06:02 +02:00
LICENSE initial commit 2025-05-27 21:06:02 +02:00
README.md initial commit 2025-05-27 21:06:02 +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