gui/ui/node_modules.bak/call-bound
Snider fad16c8c76
Some checks failed
Security Scan / security (push) Failing after 34s
Test / test (push) Failing after 1m44s
chore: sync workspace dependencies
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-15 15:44:56 +00:00
..
.github chore: sync workspace dependencies 2026-03-15 15:44:56 +00:00
test chore: sync workspace dependencies 2026-03-15 15:44:56 +00:00
.eslintrc chore: sync workspace dependencies 2026-03-15 15:44:56 +00:00
.nycrc chore: sync workspace dependencies 2026-03-15 15:44:56 +00:00
CHANGELOG.md chore: sync workspace dependencies 2026-03-15 15:44:56 +00:00
index.d.ts chore: sync workspace dependencies 2026-03-15 15:44:56 +00:00
index.js chore: sync workspace dependencies 2026-03-15 15:44:56 +00:00
LICENSE chore: sync workspace dependencies 2026-03-15 15:44:56 +00:00
package.json chore: sync workspace dependencies 2026-03-15 15:44:56 +00:00
README.md chore: sync workspace dependencies 2026-03-15 15:44:56 +00:00
tsconfig.json chore: sync workspace dependencies 2026-03-15 15:44:56 +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