1.0.0 • Published 1 year ago

@berufungirnpm/a-eligendi-suscipit v1.0.0

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

@berufungirnpm/a-eligendi-suscipit Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Robustly .call.bind() a function.

Getting started

npm install --save @berufungirnpm/a-eligendi-suscipit

Usage/Examples

const assert = require('assert');
const callBind = require('@berufungirnpm/a-eligendi-suscipit');
const callBound = require('@berufungirnpm/a-eligendi-suscipit/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

cloudwatchlockfilepackagesinassignnamepersistentserializebatcha11ypackage.jsoncssxhrSetamazoncolorelectronstables3querystringtypaniontypedarraysfast-deep-clonedatascheme-validationtc39lesscsscharactersjavascriptreducerastcopyreadawaitgetOwnPropertyDescriptorislimitECMAScript 2017less mixinsrandommimetypesObject.getPrototypeOfmimeenderPromisetoolsESnextpyyamlreact-hook-formcallboundauthenticationsameValueZeroasciiuuidcall-bindhttpsTypedArraycallbind-0execbddECMAScript 2021trimStartmiddlewarestreamajaxchromeutil.inspectStreamsjapaneseargsintrinsices-abstractrecursivestyleapinodejstrimLeftcloudfrontslicenegativesyntaxerrorstdlibgenericscirculartextprotoreduceesminimalpnpm9tapjoiObject.valueswalkeslintloggerzodsettingseslintconfigfindupmixinsES7watchES6throttleString.prototype.matchAlldefinetypeerrorsortedtsrapidFunction.prototype.namequeueMicrotaskschemardsfunctionutilitiescloudtrailECMAScript 5mkdirpPushcolumnlibphonenumberRFC-6455buffersboundbootstrap csskoreanwaitArrayBuffer#sliceform-validationi18nyamltypescriptdeepperformantphonees6hooksqsgroupByvaluessuperstructbeanstalkqueryforEachoptionvalidkarmadataViewformoptimisthasString.prototype.trimECMAScript 2016styled-componentscss variableRegExp.prototype.flagsterminaliamdependenciesroutinghasOwnfigletiterateconfigurableworkspace:*corsequalityincludescall-boundserializerReactiveExtensionsconsumepositivebyteLengthcheckutilityECMAScript 2022stringbindECMAScript 6expressfastclonefetchbrowserslistmkdirstypedavapasswordsetImmediateairbnbtakemake dirstructuredCloneeventDispatcherInt8ArrayttyMicrosoftBigUint64ArrayconcurrencyextensiondataviewomitduplexequalwordbreakmodulerangeerrorregexpqueueWeakMapvpcdescriptionstringifiergrouphardlinksartfilternumberjsdomchaidatastructurecacheloadingmulti-packagepropertiesrm -rfflatUnderscoreautoscalingconsolegradients cssESjsdiffregexgdprmonorepoSymbolclass-validatortesterrfc4122statelesssharedfunctionschromiumfoldertslibownbannerreadablestreamObservablefluxpromisesdirectorytypestringifyshellcreateimmutableTypeBoxES2023redactdirnested csslastmovematcheswatchFileestreecensorECMAScript 2020ECMAScript 2019Uint8ClampedArrayespreeclassnameslook-upruntimeassertionlistenersObject.isInt32ArrayCSSStyleDeclarationgetintrinsicfindLastIndexinvariantgetterObject.entriesweaksettypesconcatMaptddshambyteOffsetschemefsimportpluginreplayes5sesURLfromansiframeworkRegExp#flagseveryECMAScript 2023prettywebIteratorsearchupenumerableiterationreactdescriptorunicodedependency managercharacterReactiveXbluebirdchinesel10n$.extendmime-dbsortflattenviewtelephoneRxJSflagsES5lazypackage managerdynamodbwidthieconcatprivate datanegative zerotapelessmaketestingcolorswordwraptypedarrayES2015colourconnecthttpquoteerrorarraysMapjasminepreserve-symlinksimportexportobjJSONArray.prototype.includesECMAScript 7parserfast-copyreduxebscss nestingconfigtrimsymlinkregularjsondefinePropertyspinnersawesomesauceWeakSetJSON-SchemaproputilautoprefixerES2016cryptworkflowextrahigher-orderrmpreprocessordiffarrayfunctionalES2020modulesredirecthookforminstallwhatwgtermfast-deep-copysetcloudformation0taskwafsimpledbnodefilegradients css3linewrapArraylinkpostcssshimfindwarningdatematchAlloffsetES3commandvaluekeysvestcss-in-jsFloat32Arrayendpointfixed-widthgetPrototypeOfRxtoobjectprotobuf.envimmerawsFloat64Arrayratekeyfile systemwhichsharedarraybufferes2018flatMapmochamergeloggingfulltrimRightUint8Arrayglobvisualprivatepushfpses7touchhotECMAScript 2015channellintenvironmentpostcss-pluginwrapefficientidgetvariables in csstimeECMAScript 3symbolshelperssequenceregular expressionguideast-asian-widthtoSortedArray.prototype.flattendeep-copyinspectiteratorinternal slotnameswatcherES2018walkingcompilerReflect.getPrototypeOf__proto__columnspathdeleteagentrequirelocationCSSenvsymlinksextendserializationthroatbreakdebugcommanderjwtlimitedes2016ES2019busynoperegular expressionspipeformattypeofwgetmapreduceloadbalancingcommand-lineES2017patchglacierlengthbytedotenvTypeScriptjQueryless.jsbundleres-shimstyped arraydayjsdeep-cloneArrayBuffernpmfullwidthtoStringTagObject.fromEntriesargvoncefind-upUint32Arrayvariablestraverseinternalcorecryptomatchio-tsES2022cloudsearchbufferprefixmruless csscodesshebangproxydeterministic256picomatchlookcontainsxtermlogapolloeventsStyleSheetassertsstoragegatewayworkerpackageArray.prototype.findLastIndexspinnergraphqlbootstrap lessbrowserlistuninstallresolvereact-hooksargparseArray.prototype.contains
1.0.0

1 year ago