call-bind-apply-helpers (1.0.2)
Published 2026-02-24 13:53:46 +00:00 by atheaadmin
Installation
registry=npm install call-bind-apply-helpers@1.0.2"call-bind-apply-helpers": "1.0.2"About this package
call-bind-apply-helpers 
Helper functions around Function call/apply/bind, for use in call-bind.
The only packages that should likely ever use this package directly are call-bind and get-intrinsic.
Please use call-bind unless you have a very good reason not to.
Getting started
npm install --save call-bind-apply-helpers
Usage/Examples
const assert = require('assert');
const callBindBasic = require('call-bind-apply-helpers');
function f(a, b) {
assert.equal(this, 1);
assert.equal(a, 2);
assert.equal(b, 3);
assert.equal(arguments.length, 2);
}
const fBound = callBindBasic([f, 1]);
delete Function.prototype.call;
delete Function.prototype.bind;
fBound(2, 3);
Tests
Clone the repo, npm install, and run npm test
Dependencies
Dependencies
| ID | Version |
|---|---|
| es-errors | ^1.3.0 |
| function-bind | ^1.1.2 |
Development Dependencies
| ID | Version |
|---|---|
| @arethetypeswrong/cli | ^0.17.3 |
| @ljharb/eslint-config | ^21.1.1 |
| @ljharb/tsconfig | ^0.2.3 |
| @types/for-each | ^0.3.3 |
| @types/function-bind | ^1.1.10 |
| @types/object-inspect | ^1.13.0 |
| @types/tape | ^5.8.1 |
| auto-changelog | ^2.5.0 |
| encoding | ^0.1.13 |
| es-value-fixtures | ^1.7.1 |
| eslint | =8.8.0 |
| evalmd | ^0.0.19 |
| for-each | ^0.3.5 |
| has-strict-mode | ^1.1.0 |
| in-publish | ^2.0.1 |
| npmignore | ^0.3.1 |
| nyc | ^10.3.2 |
| object-inspect | ^1.13.4 |
| safe-publish-latest | ^2.0.0 |
| tape | ^5.9.0 |
| typescript | next |
