call-bound
Robust call-bound JavaScript intrinsics, using `call-bind` and `get-intrinsic`.
Last updated 10 days ago by ljharb .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install call-bound 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.3                                ...           latest (10 days ago)

3 Versions

  • 1.0.3                                ...           10 days ago
  • 1.0.2                                ...           15 days ago
  • 1.0.1                                ...           20 days ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (21)

© 2010 - cnpmjs.org x YWFE | Home | YWFE