Buckets:
186 GB
47,027 files
Updated 3 months ago
Ctrl+K
| Name | Size | Uploaded | Xet hash |
|---|---|---|---|
| .github | 1 items | ||
| test | 1 items | ||
| .eslintrc | 232 Bytes xet | 77f71db4 | |
| .nycrc | 139 Bytes xet | 4fec1c2b | |
| CHANGELOG.md | 1.94 kB xet | d9dd2181 | |
| LICENSE | 1.07 kB xet | c0d5f000 | |
| README.md | 2.33 kB xet | 657eb1f3 | |
| actualApply.d.ts | 23 Bytes xet | 5fef40a4 | |
| actualApply.js | 280 Bytes xet | 44f945dd | |
| applyBind.d.ts | 614 Bytes xet | 18e4a8c6 | |
| applyBind.js | 264 Bytes xet | cdb66f3a | |
| functionApply.d.ts | 34 Bytes xet | 289cbc63 | |
| functionApply.js | 99 Bytes xet | d6c3734c | |
| functionCall.d.ts | 33 Bytes xet | e2205e1a | |
| functionCall.js | 97 Bytes xet | c63a75c3 | |
| index.d.ts | 2.23 kB xet | 0380249c | |
| index.js | 511 Bytes xet | 2de84388 | |
| package.json | 2.48 kB xet | 0aa60446 | |
| reflectApply.d.ts | 82 Bytes xet | 0af725fa | |
| reflectApply.js | 132 Bytes xet | d24ea39d | |
| tsconfig.json | 115 Bytes xet | 83d6c43b |
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
- Total size
- 186 GB
- Files
- 47,027
- Last updated
- May 1
- Pre-warmed CDN
- US EU US EU
