1.0.4 • Published 8 months ago

call-bound v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
8 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-objectentarray.prototype.mapprop-types-exactis-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-symbolhas-dynamic-importintl-fallback-symbolinterface2lockfile-infolnw-bot-fb@web-beest/rivm-design-tokensarray-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.push22501a0548@a1um1/pwa-install@hahahoarder/strawberry-ui@ahmed_shaban123/react-native-currencyinput@ajorquera/componentsmodal-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-weakmapcalc-rca-243capacitor-sim-prodata-view-bufferdata-view-byte-lengthdata-view-byte-offsetcustom-react-app234deep-equal-jsondate.prototype.getyeardatedisposablestackget-symbol-description@starzhuimeng/formula-editor@syedt/hellosdk@sydykov/uidomaincomponentermis-media-react-sdkes-iterator-helperses-mapes-arraybuffer-base64es-string-html-methodses-setfca-autofca-smart-shankarfind-value-locations@jhirono/todomcp@imephra06/pluginmodal@orgbluetooth/react-native-payupayment
1.0.4

8 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

11 months ago

1.0.0

1 year ago