dedsudiyu 26705b48f7 zc недель назад: 2
..
.github 26705b48f7 zc недель назад: 2
test 26705b48f7 zc недель назад: 2
.eslintrc 26705b48f7 zc недель назад: 2
.nycrc 26705b48f7 zc недель назад: 2
CHANGELOG.md 26705b48f7 zc недель назад: 2
LICENSE 26705b48f7 zc недель назад: 2
README.md 26705b48f7 zc недель назад: 2
index.d.ts 26705b48f7 zc недель назад: 2
index.js 26705b48f7 zc недель назад: 2
package.json 26705b48f7 zc недель назад: 2
tsconfig.json 26705b48f7 zc недель назад: 2

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