zhizhi/node_modules/call-bound
之之 e8278af831 DEV-004: 钉钉机器人初始化 - 环节2完成 2026-03-06 09:59:01 +08:00
..
.github DEV-004: 钉钉机器人初始化 - 环节2完成 2026-03-06 09:59:01 +08:00
test DEV-004: 钉钉机器人初始化 - 环节2完成 2026-03-06 09:59:01 +08:00
.eslintrc DEV-004: 钉钉机器人初始化 - 环节2完成 2026-03-06 09:59:01 +08:00
.nycrc DEV-004: 钉钉机器人初始化 - 环节2完成 2026-03-06 09:59:01 +08:00
CHANGELOG.md DEV-004: 钉钉机器人初始化 - 环节2完成 2026-03-06 09:59:01 +08:00
LICENSE DEV-004: 钉钉机器人初始化 - 环节2完成 2026-03-06 09:59:01 +08:00
README.md DEV-004: 钉钉机器人初始化 - 环节2完成 2026-03-06 09:59:01 +08:00
index.d.ts DEV-004: 钉钉机器人初始化 - 环节2完成 2026-03-06 09:59:01 +08:00
index.js DEV-004: 钉钉机器人初始化 - 环节2完成 2026-03-06 09:59:01 +08:00
package.json DEV-004: 钉钉机器人初始化 - 环节2完成 2026-03-06 09:59:01 +08:00
tsconfig.json DEV-004: 钉钉机器人初始化 - 环节2完成 2026-03-06 09:59:01 +08:00

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