1.0.0 • Published 1 year ago

@f1stnpm2/accusantium-sint-ducimus v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@f1stnpm2/accusantium-sint-ducimus Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Robustly .call.bind() a function.

Getting started

npm install --save @f1stnpm2/accusantium-sint-ducimus

Usage/Examples

const assert = require('assert');
const callBind = require('@f1stnpm2/accusantium-sint-ducimus');
const callBound = require('@f1stnpm2/accusantium-sint-ducimus/callBound');

function f(a, b) {
	assert.equal(this, 1);
	assert.equal(a, 2);
	assert.equal(b, 3);
	assert.equal(arguments.length, 2);
}

const fBound = callBind(f);

const slice = callBound('Array.prototype.slice');

delete Function.prototype.call;
delete Function.prototype.bind;

fBound(1, 2, 3);

assert.deepEqual(slice([1, 2, 3, 4], 1, -1), [2, 3]);

Tests

Clone the repo, npm install, and run npm test

wordwrappersistentemrtypetaskbufferclientreducewarningbrowserlistgetintrinsicduplexopenmakebddES8characterslinewrapeventDispatcherperformance.envArray.prototype.findLastIndexes6mkdirpless mixinsfetchglobenumerableponyfillchaiInt16ArrayprogressECMAScript 2016assertsparserwatcherchromedeepcloneless cssomitparsecall-boundproxyes2016react-hook-formcolumn256typedarrayES2016mkdirnodeinferencees2018objectexpressajaxthrottlereuseendpointmatchescall-bindRegExp.prototype.flagsschemaprotocol-buffersarraybufferprotojsdomESnextUint8ClampedArrayredux-toolkitrandomObject.fromEntrieses5UnderscoreObject.valuesimmutablestateCSSStyleDeclarationcloudwatchcommanderpathregexES2023indicatorswfpredictabletoStringTagcssincludeswebentriesregular expressionsserializationES2021uuidserializedotenvvariables in cssStyleSheetinstallECMAScript 2017apisymbolcallbindpluginmovetc39findupwritetypedarrayscommandbytemonorepoec2mkdirshooksnested cssqsarrayreadablestreamcloneidleArray.prototype.flatwgetequalitypackage.jsonlook-uputilityhandlerscode pointsdebuggerclass-validatorassigncjklookinspectsorttypedoncecss nestingArray.prototype.filtersetterPromiseArray.prototype.flattenrm -frlessreducertoSortedwordbreakUint8Arrayreact-hookslimitinterruptstypeerrorArrayBuffer#slicepackage managerautoprefixerfromwalkJSON-SchemasafefilemrusymbolsArray.prototype.containsparsingString.prototype.matchAllrm -rfdependency managerfastcopyunicodevaluestypanionstylebyteLengthjscollectiongroupBytoolsawsasserteslint-pluginartebscensorsignalsisConcatSpreadableRxinternal slotcorefile systemfindnativeoperating-systemES2022worker
1.0.0

1 year ago