intern-Assignment/PostgreSQL/formPrac/node_modules/call-bound
2025-01-31 15:20:39 +05:30
..
.github Intern-Assignments 2025-01-31 15:20:39 +05:30
test Intern-Assignments 2025-01-31 15:20:39 +05:30
.eslintrc Intern-Assignments 2025-01-31 15:20:39 +05:30
.nycrc Intern-Assignments 2025-01-31 15:20:39 +05:30
CHANGELOG.md Intern-Assignments 2025-01-31 15:20:39 +05:30
index.d.ts Intern-Assignments 2025-01-31 15:20:39 +05:30
index.js Intern-Assignments 2025-01-31 15:20:39 +05:30
LICENSE Intern-Assignments 2025-01-31 15:20:39 +05:30
package.json Intern-Assignments 2025-01-31 15:20:39 +05:30
README.md Intern-Assignments 2025-01-31 15:20:39 +05:30
tsconfig.json Intern-Assignments 2025-01-31 15:20:39 +05:30

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