1.3.15 • Published 11 months ago

@kollorg/tempora-maiores v1.3.15

Weekly downloads
-
License
MIT
Repository
github
Last release
11 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

11 months ago

1.3.14

11 months ago

1.3.13

11 months ago

1.3.12

11 months ago

1.3.11

11 months ago

1.2.11

11 months ago

1.2.10

11 months ago

1.2.9

11 months ago

1.1.9

11 months ago

1.1.8

11 months ago

1.1.7

11 months ago

1.1.6

11 months ago

1.1.5

11 months ago

1.1.4

12 months ago

1.1.3

12 months ago

1.1.2

12 months ago

1.1.1

12 months ago

1.1.0

12 months ago

1.0.0

12 months ago