zheng 3cabbb3159 webpack hace 19 horas
..
.github 3cabbb3159 webpack hace 19 horas
test 3cabbb3159 webpack hace 19 horas
.eslintrc 3cabbb3159 webpack hace 19 horas
.nycrc 3cabbb3159 webpack hace 19 horas
CHANGELOG.md 3cabbb3159 webpack hace 19 horas
LICENSE 3cabbb3159 webpack hace 19 horas
README.md 3cabbb3159 webpack hace 19 horas
index.d.ts 3cabbb3159 webpack hace 19 horas
index.js 3cabbb3159 webpack hace 19 horas
package.json 3cabbb3159 webpack hace 19 horas
tsconfig.json 3cabbb3159 webpack hace 19 horas

README.md

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