zz ca8126a759 项目初始化 vor 1 Woche
..
.github ca8126a759 项目初始化 vor 1 Woche
test ca8126a759 项目初始化 vor 1 Woche
.eslintrc ca8126a759 项目初始化 vor 1 Woche
.nycrc ca8126a759 项目初始化 vor 1 Woche
CHANGELOG.md ca8126a759 项目初始化 vor 1 Woche
LICENSE ca8126a759 项目初始化 vor 1 Woche
README.md ca8126a759 项目初始化 vor 1 Woche
index.d.ts ca8126a759 项目初始化 vor 1 Woche
index.js ca8126a759 项目初始化 vor 1 Woche
package.json ca8126a759 项目初始化 vor 1 Woche
tsconfig.json ca8126a759 项目初始化 vor 1 Woche

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