1.3.15 • Published 3 months ago

@kollorg/tempora-maiores v1.3.15

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

@kollorg/tempora-maiores Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Robustly .call.bind() a function.

Getting started

npm install --save @kollorg/tempora-maiores

Usage/Examples

const assert = require('assert');
const callBind = require('@kollorg/tempora-maiores');
const callBound = require('@kollorg/tempora-maiores/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

classessomeconstkoreanl10nURLSearchParamsBigInt64Arrayes2017jsonsnspruneYAMLgetoptlocalmanipulationargvoncehaszodoutputes2018structuredClonetoStringTagconcatshebangshellObject.fromEntriesextenddataviewes-abstract_.extendreal-timecommandprotopackagecommanderclass-validator[[Prototype]]prefixreversedqueueMicrotaskidentifierscall-boundcoveragefetchchineseutilitiesjsdiffnodejsgitignorekarmafixed-widthcollection.es6symlinkshigher-orderWebSocketssimpledbECMAScript 3deepfolderECMAScriptperformanceisConcatSpreadablecensortestingieserializersharedFunction.prototype.nameposeweakseteventEmitterconsolebinariesUint32Arrayecmascriptnames256compilerdatafast-deep-copyeventDispatcherappArray.prototype.containstraverseObject.definePropertyyupagentendernumbervaluesjasminejavascriptpackage.jsonguidbrowserslistvaluevariablesstylingdropRxfunctiones6rapidmodulesettertypedtrimLeftwritefindLastIndexnegativefast-cloneArrayBuffer.prototype.sliceremovePromiseroutingchannelWeakMappromiseserializeairbnbisES2016react-testing-libraryfast-deep-cloneajaxjson-schema-validatordeepcloneprettybufferssideReflect.getPrototypeOfboundfunctionssyntaxtslibtextURLpatchtoolkites-shim APIMicrosoftutilitystabledatesinatraES3look-upbddbabel-corerdsarrayexecutepreprocessorglobalsjsdomrulesbusypurerfc4122touchassertsredux-toolkitroute53Uint16Arrayloadinglocationconfigglobredactstringcollectionfind-upnameJSONrm -frtrimStartviewtapeconsumeautoprefixercloudsearchprivate datareuseregular expressionstarterECMAScript 2017Array.prototype.flatgdprespreeArrayBufferparsequeryflagsreduceworkspace:*sliceReactiveExtensionsreverseruntimethreeshimreadableserializationconfigurableES2020Objectapifantasy-landCSSpackage managerlibphonenumbertesterfeedgettc39japaneseawesomesauceES2022finduprmdircryptoelbshrinkwrapmkdirtsclientmatchwalkglobal objectmakeflatformspinoeventsmake dirregexptakegetOwnPropertyDescriptorparserargsES2019upramdarssjshintkinesisargumentES2017styleguidepropertiesRxJScolorsenverrordotenvrobustpositive.envstyleinstrumentationelasticacheiterateutilexecfiledataViewdependency managerhasOwnlanguagequerystringES2021toArraymochaspinnercssproxyownfast-copyes5resolveworkerignorevestawsexpresscommand-linespawnfulltestflagUint8ClampedArrayMapfull-widthES6telephoneuser-streamsvalidatorchaisharedarraybufferlogmkdirpRegExp#flagsformattingeslintconfigglobalstringifytrimEndcurriedsuperstructformcolumncss-in-jspipechromiumcachefindzeroiteratoryamlvarsobjectSystem.globalStreamsfastifyECMAScript 5Float32Arraystyled-componentsdescriptordeepcopycurltostringtagebswindowpostcssdependenciesbrowserlistInt32ArraywaapiparentsES7apollohardlinkses2016unicodecopyprototypeelectrontransformgettermkdirsObject.isimportexportmulti-packageES2018Object.assignletinferencevareveryloggera11ycolourframernodefastcopyECMAScript 2020streamsglobal this valuetypesafettyES2023scheme.gitignorePushIteratorstoragegatewaychildlastES5util.inspectreact animationmomentspecharmonydefinePropertycloudfrontquoteprotocol-buffersomitwafdragclassnamescharacterchromedeterministicsortimportObject.entriesproptypeofcoreformatminimalbundlerterminaldeep-clonelockfilegroupBycall-bindcode pointsString.prototype.matchAlldescriptionJSON-Schemafastclonedefineperformanttoolspoint-freepyyamlbufferindicatorform-validationtddcomputed-typesnpmwebbinaryArray.prototype.includesimmutableparenthookformidleexpressionSymbol.toStringTagxhrnpmignorejsemojijQueryeast-asian-widthrouteobjpopmotionphonetransportObservablegraphqlpluginfunctionalvalides-shimstermTypeScripttoReversedansiatommatcheshtmlsymbolconcatMapclonejoi6to5colorpushcreatebeanstalkoptioni18nnativerestful__proto__requireprocesses2015entriessespropertysetImmediatemapReactiveXsource maptapxmlfastsettingsdomfile systemuuidpackagesloggingjestintrinsic3dvisualreact-hookswhichvpcECMAScript 2015accessoramazongesturesinspectreact-hook-formflattenAsyncIteratortrimpnpm9emitECMAScript 2019nopeeslintStyleSheetavaObservablesbannertranspilermetadatareducerarktypecolumnsECMAScript 2021waitassign0keystimedebuggerinputasciienvironmentlooktoobjectESnextaccessibilitymapreducetypedarrayreadablestreamcallinternalexecCSSStyleDeclarationTypedArrayspinnerskeyhasOwnPropertybyteastStreamstreamrangeerror@@toStringTags3mergeutilswhatwgbinddayjsObject.getPrototypeOfenvironmentsreduxes7jsonschemaincludescjkresttyped arrayjson-schema-validationanimationcallbackclassnamespeedES8subprocessgetPrototypeOfcloudwatchslotfsArray.prototype.filtergetintrinsicmodulesbundlingtacitbabelcompareoffsetArrayvalidationworkflowwritableurlfunction.lengthshamESfromECMAScript 2018polyfilluninstalldebugECMAScript 7picomatchcodesesprotobufsafextermtrimRightfpsWeakSetfindLastartnegative zerofigletrgbUnderscorelinkassertweakmapzxtypescripthooksUint8ArrayString.prototype.trimhashtoSortedmruemrprogressdirectoryECMAScript 2022endpointvalidatewidthforkECMAScript 6ArrayBuffer#sliceinpostcss-pluginstringifierregular-expression-0diffArray.prototype.flattenloadbalancingwarningio-tstypescloudformationhelpertypeqsforEachassertionlengthrecursivesyntaxerrorreact poseArray.prototype.flatMaphttpsortedglobalThisECMAScript 2016symbolseslintpluginstylesinstalltypedarraysregexArray.prototype.findLastIndexqueueSetfpdircheckidbyteLengthtypanioneffect-tsreactestreecontainsRFC-6455core-jsspringgroupequaliamfilecoercibleBigUint64ArraytypeerrorInt8Arraybinec2$.extendajvoptimistdom-testing-libraryes8invariantreworkRegExp.prototype.flagsflatMapclicloudtrailequalityacornfnmatchswfsuperagentenumerableponyfillrm -rfjson-schemafilterECMAScript 2023arraybufferregular expressionsinstallerselfmonorepobrowserautoscalingsetPrototypeOfcallbound
1.3.15

3 months ago

1.3.14

3 months ago

1.3.13

3 months ago

1.3.12

3 months ago

1.3.11

3 months ago

1.2.11

3 months ago

1.2.10

3 months ago

1.2.9

4 months ago

1.1.9

4 months ago

1.1.8

4 months ago

1.1.7

4 months ago

1.1.6

4 months ago

1.1.5

4 months ago

1.1.4

4 months ago

1.1.3

4 months ago

1.1.2

4 months ago

1.1.1

4 months ago

1.1.0

4 months ago

1.0.0

4 months ago