aimpress-chatbot/node_modules/call-bound
2025-04-27 18:04:34 +01:00
..
.github Initial Express bot version for ChatBot2222 2025-04-27 18:04:34 +01:00
test Initial Express bot version for ChatBot2222 2025-04-27 18:04:34 +01:00
.eslintrc Initial Express bot version for ChatBot2222 2025-04-27 18:04:34 +01:00
.nycrc Initial Express bot version for ChatBot2222 2025-04-27 18:04:34 +01:00
CHANGELOG.md Initial Express bot version for ChatBot2222 2025-04-27 18:04:34 +01:00
index.d.ts Initial Express bot version for ChatBot2222 2025-04-27 18:04:34 +01:00
index.js Initial Express bot version for ChatBot2222 2025-04-27 18:04:34 +01:00
LICENSE Initial Express bot version for ChatBot2222 2025-04-27 18:04:34 +01:00
package.json Initial Express bot version for ChatBot2222 2025-04-27 18:04:34 +01:00
README.md Initial Express bot version for ChatBot2222 2025-04-27 18:04:34 +01:00
tsconfig.json Initial Express bot version for ChatBot2222 2025-04-27 18:04:34 +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