1.0.4 • Published 3 months ago

call-bound v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

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

es-abstractis-regexobject.assignis-date-objectis-symbolobject.valuesis-argumentsis-stringobject.entriesjson-stable-stringifyfunction.prototype.nameis-boolean-objectis-number-objectentprop-types-exactarray.prototype.mapis-generator-functioncustom-react-app1custom-react-app2@youngseokangg/common-bundleistoun-pluginis-data-viewis-array-bufferis-async-functionis-well-known-symbolis-weakrefis-weaksetjosh-fcais-finalizationregistryis-shared-array-bufferis-registered-symbolmodal-react-laurahaasn8n-nodes-d7-messagingmy-sensor-generatorotus-functional-developmentnumber.prototype.toexponentialpanzx-storereact-native-ideo-rn-notificationssafe-regex-testrender-status-badgereact-native-opussafe-array-concatset.prototype.differencereact-native-test-multiplier-libraryprojectweek2skola77-apiside-channel-mapside-channel-weakmaphas-dynamic-importintl-fallback-symbolinterface2lockfile-infolnw-bot-fb@web-beest/rivm-design-tokens@sydykov/ui@syedt/hellosdkarray-buffer-byte-lengtharray.prototype.findindexarray.prototype.indexofarray.prototype.joinarray.prototype.reducearray.prototype.reducerightarray.prototype.splicearray.prototype.tosplicedarray.prototype.unshiftarray.prototype.copywithinarray.prototype.everyarray.prototype.findlastindexarray.prototype.lastindexofarray.prototype.pushcalc-rca-243capacitor-sim-prodata-view-bufferdata-view-byte-lengthdata-view-byte-offsetcustom-react-app234deep-equal-jsondate.prototype.getyeardatedisposablestackdomaincomponentermis-media-react-sdkes-iterator-helperses-mapes-arraybuffer-base64es-string-html-methodses-setfca-autofca-smart-shankarfind-value-locationsget-symbol-description
1.0.4

3 months ago

1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

1 year ago