iching-broker-level2/node_modules/call-bound
Christopher Hase b27a419c2f
All checks were successful
ci / build (push) Successful in 1m33s
add http-server part 5
2025-04-09 11:10:36 +02:00
..
.github add http-server part 5 2025-04-09 11:10:36 +02:00
test add http-server part 5 2025-04-09 11:10:36 +02:00
.eslintrc add http-server part 5 2025-04-09 11:10:36 +02:00
.nycrc add http-server part 5 2025-04-09 11:10:36 +02:00
CHANGELOG.md add http-server part 5 2025-04-09 11:10:36 +02:00
index.d.ts add http-server part 5 2025-04-09 11:10:36 +02:00
index.js add http-server part 5 2025-04-09 11:10:36 +02:00
LICENSE add http-server part 5 2025-04-09 11:10:36 +02:00
package.json add http-server part 5 2025-04-09 11:10:36 +02:00
README.md add http-server part 5 2025-04-09 11:10:36 +02:00
tsconfig.json add http-server part 5 2025-04-09 11:10:36 +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