HodlEye_Crypto_Price_Tracker/server/newsfeed/node_modules/call-bound
2025-03-06 16:13:38 +01:00
..
.github Release 1.0.1 2025-03-06 16:13:38 +01:00
test Release 1.0.1 2025-03-06 16:13:38 +01:00
.eslintrc Release 1.0.1 2025-03-06 16:13:38 +01:00
.nycrc Release 1.0.1 2025-03-06 16:13:38 +01:00
CHANGELOG.md Release 1.0.1 2025-03-06 16:13:38 +01:00
index.d.ts Release 1.0.1 2025-03-06 16:13:38 +01:00
index.js Release 1.0.1 2025-03-06 16:13:38 +01:00
LICENSE Release 1.0.1 2025-03-06 16:13:38 +01:00
package.json Release 1.0.1 2025-03-06 16:13:38 +01:00
README.md Release 1.0.1 2025-03-06 16:13:38 +01:00
tsconfig.json Release 1.0.1 2025-03-06 16:13:38 +01: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