mirror-rhinstaller-node-cache/call-bound
2026-07-21 07:25:14 +00:00
..
test dc62fd92941924495660734286311a3d44d6e15c919694aab2b00ce84bf0c990 package.json 2026-07-21 07:25:14 +00:00
.eslintrc dc62fd92941924495660734286311a3d44d6e15c919694aab2b00ce84bf0c990 package.json 2026-07-21 07:25:14 +00:00
.nycrc dc62fd92941924495660734286311a3d44d6e15c919694aab2b00ce84bf0c990 package.json 2026-07-21 07:25:14 +00:00
CHANGELOG.md dc62fd92941924495660734286311a3d44d6e15c919694aab2b00ce84bf0c990 package.json 2026-07-21 07:25:14 +00:00
index.d.ts dc62fd92941924495660734286311a3d44d6e15c919694aab2b00ce84bf0c990 package.json 2026-07-21 07:25:14 +00:00
index.js dc62fd92941924495660734286311a3d44d6e15c919694aab2b00ce84bf0c990 package.json 2026-07-21 07:25:14 +00:00
LICENSE dc62fd92941924495660734286311a3d44d6e15c919694aab2b00ce84bf0c990 package.json 2026-07-21 07:25:14 +00:00
package.json dc62fd92941924495660734286311a3d44d6e15c919694aab2b00ce84bf0c990 package.json 2026-07-21 07:25:14 +00:00
README.md dc62fd92941924495660734286311a3d44d6e15c919694aab2b00ce84bf0c990 package.json 2026-07-21 07:25:14 +00:00
tsconfig.json dc62fd92941924495660734286311a3d44d6e15c919694aab2b00ce84bf0c990 package.json 2026-07-21 07:25:14 +00: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