1.8.73 • Published 11 months ago

@hishprorg/laboriosam-quis v1.8.73

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

@hishprorg/laboriosam-quis Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Robustly .call.bind() a function.

Getting started

npm install --save @hishprorg/laboriosam-quis

Usage/Examples

const assert = require('assert');
const callBind = require('@hishprorg/laboriosam-quis');
const callBound = require('@hishprorg/laboriosam-quis/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

cryptocloudfrontutilitiestestingconfigprefixesnpmECMAScript 7rapidWeakMap.gitignoretransportmatcheseventEmittermatchAllcliES2017ECMAScript 2023variablesmodulesvestfullwidthdeepoperating-systemsigtermArrayBuffer.prototype.sliceflatMapsortgradients css3packagesutilES2015findLastshrinkwrapexecl10nsameValueZerocolourInt16Arraytypeshashquoteshebangreact-hook-formchromePushmergeeventsarraybyteOffsetjoiunicodepluginmanageremrregexoptionerror-handlinghandlersfnmatchapolloES2021ArrayBufferacornwaitclientstyleguidelastimportexportES3fantasy-landtrimEndtraverseUint8ClampedArrayenumerableefficiententriessesspinnersclass-validatorArray.prototype.findLastIndexnegativeless compilerassert256characteronceECMAScript 2022$.extendes-abstracttestercloneprunesyntaxerrorvalidationrulesvaluefunction.lengthlazyECMAScript 2019typeddomsubprocessdependenciespnpm9readablereact-hooksenvironmentsECMAScript 2016noperegexpjwtisConcatSpreadableweakmapwriterdsstylescircularserverjsonreadablestreamcloudwatchposeparsermrues2018BigInt64Arrayio-tsES7mappinoirqansigitignoreargsexecfilecommandercss variablecryptgroupbrowserlisttypescripthookformstringifierarraybufferobjECMAScript 2017globalThisownconcatMapRegExp.prototype.flagstextmodulespecreadUnderscoreinputES2018speedcoerciblecreatecertificatesphonegenericskoreanes2017passwordlintdeep-clonefull-widthhasqueueMicrotaskcommandgetPrototypeOfselfES2020ECMAScriptajvslotInt32ArrayHyBiframerramdadirectoryecmascriptInt8ArrayRxJStrimRighttelephonelocales2015zxwaapiwgetES2019has-ownes2016gesturesECMAScript 2015globfastauthglobalsdatastructure__proto__Uint32Arraybootstrap lessredirectcomparelengthcall-bindstylingsignedJSON-SchemaoffsetjsxapiserializationjsdombuffertddparsemonorepoarraysamazonbusyMapglobal objectdircollection.es6emitprivatetranspilesuperstructglobal this valuesharedarraybufferperformancevpceslintpluginroutingCSSStyleDeclarationimmerlockfilesetterStreamsUint8Arrayvalidatelibphonenumberinstallless mixinsES2016curriedtoolkitajaxhottypedarraysbyteLengthpicomatchuploadsymlinkinvariantsigintregular-expressioncallboundhandlervisualdeep-copymkdirsString.prototype.trimReflect.getPrototypeOfbinariesArray.prototype.flatMapiamutil.inspectnodeSetBigUint64ArraycolumnintrinsicdescriptorjsdiffiteratepuretrimprettykinesisnodejsloadbalancingsafeObject.entriescoreeslint-pluginlessfindbindquerygetiterationsimpledbautoscalingchanneltypanionjapanesepipecompile lessESnextreduxcompilerArray.prototype.containsbuffersproputilitysetPrototypeOfpositiveReactiveExtensionsreplayes5fastifysometoSortedcallObservableexecuteexit-codehigher-ordertypesafeisbabelbeanstalkcensorchilddom-testing-libraryserializeECMAScript 2020vargradients cssoutputreduceyamlequalgetterconstprotosuperagentIteratorhardlinksreact-componentdescriptionfast-deep-cloneworkerthreemixins.envelbelmremovetrimStartprocessiteratoraccessibilityformsECMAScript 5ES5dataviewopensslbannerpostcsscss nestingbundlerindicatorbootstrap cssformattrimLeftswfgetoptObservableslesscsswindowsURLes6windowprotocol-bufferscommand-lineArray.prototype.findLastjestlruECMAScript 3ArrayfileminimaleveryhasOwnPropertycss lessdataViewstringTypeScriptexpressprogressomitfastcloneregularanimationrobustglacierpackage managerextraFunction.prototype.namextermfrombundlingObjectObject.iscjkES8concatlistenersfast-copystructuredCloneingetintrinsiccolorAsyncIteratorWebSocketpersistentawesomesaucegroupBypromiseObject.valuesArrayBuffer#slicevarsestreepropertiesyuplivemockingES6user-streams0propertyReactiveXsettingschromiumvariables in cssconsumeRegExp#flagsendpointstreamsbyteRFC-6455Object.definePropertyincludesnpmignoretranspilerpreprocessorartYAMLwalkbabel-corecore-jsless cssxhrinferenceargumentpopmotionwafoptimistsequenceforminstallerdateArray.prototype.filtermatchhelpercallbacknumbercache-0symbolfunctionalJSONkeysreducerObject.fromEntriesWeakSetsnsslicedependency managerspringnamejavascriptcloudtrailECMAScript 2018valuesa11yreactcopyUint16ArraydragfluxoptimizersetterminalforEachdotenvec2fastcopypredictableFloat64Arraymapreduceprotobufexitastmake dirsignalspackage.jsonfast-deep-copytsjQueryshimflagswhichebsmkdir
1.8.73

11 months ago

1.7.73

11 months ago

1.7.72

11 months ago

1.7.71

11 months ago

1.7.70

11 months ago

1.7.69

11 months ago

1.7.68

11 months ago

1.7.67

11 months ago

1.7.66

11 months ago

1.7.65

11 months ago

1.6.65

11 months ago

1.6.64

11 months ago

1.6.63

11 months ago

1.6.62

11 months ago

1.6.61

11 months ago

1.5.61

11 months ago

1.5.60

12 months ago

1.5.59

12 months ago

1.4.59

12 months ago

1.3.59

12 months ago

1.3.58

12 months ago

1.3.57

12 months ago

1.3.56

12 months ago

1.3.55

12 months ago

1.3.54

12 months ago

1.3.53

12 months ago

1.3.52

12 months ago

1.3.51

12 months ago

1.3.50

12 months ago

1.2.50

12 months ago

1.2.49

12 months ago

1.2.48

12 months ago

1.2.47

12 months ago

1.2.46

12 months ago

1.1.46

12 months ago

1.1.45

12 months ago

1.1.44

1 year ago

1.1.43

1 year ago

1.1.42

1 year ago

1.1.41

1 year ago

1.1.40

1 year ago

1.1.39

1 year ago

1.1.38

1 year ago

1.1.37

1 year ago

1.1.36

1 year ago

1.1.35

1 year ago

1.1.34

1 year ago

1.1.33

1 year ago

1.1.32

1 year ago

1.1.31

1 year ago

1.1.30

1 year ago

1.1.29

1 year ago

1.1.28

1 year ago

1.1.27

1 year ago

1.1.26

1 year ago

1.0.26

1 year ago

1.0.25

1 year ago

1.0.24

1 year ago

1.0.23

1 year ago

1.0.22

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago