call-bound (1.0.4)

Published 2026-02-24 13:53:47 +00:00 by atheaadmin

Installation

registry=
npm install call-bound@1.0.4
"call-bound": "1.0.4"

About this package

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

Dependencies

Dependencies

ID Version
call-bind-apply-helpers ^1.0.2
get-intrinsic ^1.3.0

Development Dependencies

ID Version
@arethetypeswrong/cli ^0.17.4
@ljharb/eslint-config ^21.1.1
@ljharb/tsconfig ^0.3.0
@types/call-bind ^1.0.5
@types/get-intrinsic ^1.2.3
@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
gopd ^1.2.0
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

Keywords

javascript ecmascript es js callbind callbound call bind bound call-bind call-bound function es-abstract
Details
npm
2026-02-24 13:53:47 +00:00
1
Jordan Harband
MIT
latest
6.2 KiB
Assets (1)
Versions (1) View all
1.0.4 2026-02-24