5.5.87 • Published 1 year ago

@erboladaiorg/facere-maxime v5.5.87

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

@erboladaiorg/facere-maxime Version Badge

github actions coverage License Downloads

npm badge

Set a function’s length.

Arguments:

  • fn: the function
  • length: the new length. Must be an integer between 0 and 2**32.
  • loose: Optional. If true, and the length fails to be set, do not throw. Default false.

Returns fn.

Usage

var setFunctionLength = require('@erboladaiorg/facere-maxime');
var assert = require('assert');

function zero() {}
function one(_) {}
function two(_, __) {}

assert.equal(zero.length, 0);
assert.equal(one.length, 1);
assert.equal(two.length, 2);

assert.equal(setFunctionLength(zero, 10), zero);
assert.equal(setFunctionLength(one, 11), one);
assert.equal(setFunctionLength(two, 12), two);

assert.equal(zero.length, 10);
assert.equal(one.length, 11);
assert.equal(two.length, 12);
finddatastructureaccessordeep-copyUnderscoreECMAScript 2017windowsjssubprocessESrecursiveelasticacheprotowhichgetintrinsicserializercallwritebddmruroutelazyjoicjkhasECMAScript 7statelessserializedatesymlinkECMAScript 5fastcopyfullwidthworkspace:*Object.keysInt16ArrayRxeventDispatcheres5colortextloadingnegativebundlerjson-schemapropertiesregexvaliddirectoryextendECMAScriptJSONslotcommandmovecolumnsvalueseslintpluginglobal object-0RegExp.prototype.flagskeyeventEmitterArrayinstallgroup_.extendbusyacornless.jslengthtranspilerimportinstallerES2016computed-typesclientreadablestyleguideredactbannerArrayBufferminimalstartertypeequalitycolorsliveeslintjestprotocol-buffersutilspostcssfastpreprocessor[[Prototype]]spinnersassigncliperformanceregularcensortspicomatchworkflowECMAScript 2015exitcompilerrangeerrorRegExp#flagsbyteinterruptseast-asian-widthequalfilterstabletypeofencryptioncolourECMAScript 2020cacheidlesuperagentvarsfixed-widthobjectautoprefixerexecutehigher-orderArray.prototype.flatten256forEachjQueryomitglobalsrapidstyleexecfilehandlerindicatorES7enderregexpES2018TypeBoxsetfast-deep-copyfunctionbyteOffsetjson-schema-validatorjwtES8javascriptjshintpurenameswalklinuxmonorepoconfigzxwafdirkeysreact-componenttestingweaksetesasterisksebsa11yhas-ownes-shim APIES5IteratorisConcatSpreadablenativeecmascriptObject.definePropertygetOwnPropertyDescriptorlastirqRxJStesteres2018threeFloat32Arrayquerystringrobustbcryptformattoobjectpruneramdaprettychromiumsymbolstypedinternal slot0namewritableoncePromiseaccessibilitymulti-packagefigletreduceobjqueueMicrotaskpoint-freesettingsiampyyamlsortwidthconstlanguagechildreact animationtouchcopyfindLastIndexflatstyled-componentsArray.prototype.flatMapES2023chinesefromchailetqueuewarningcommanderajvgettereffect-tsvariablesmapreducetslibsymbolkinesisbundling__proto__snsasciiviewes6groupBydeepiscircularapollomergemixinsperformanttc39tacitselfspawnECMAScript 2018URLSearchParamsroutingshrinkwrapjsonschemareadespreehttpsTypedArrayglaciermetadatapolyfillcryptovalidateflagfnmatchnodejshotreact-hooksback-endfastifyObjectsignalsentrieslogarktypeelmprefixawesomesaucedom-testing-librarydescriptorspushbinariesStyleSheetpathtoSorteddeep-cloneemrStreamiteratorregular expressiondataarraysObservableconfigurableyamleventstelephonejsxoutputweakmaplrusuperstructES6pnpm9emitFunction.prototype.nameassertsformstoolselectronArrayBuffer#slicebabelstreamsoptionclass-validatoranimationgraphqlWebSocketsUint8ArraydeleteES2020jsonutilitiescoercibles3Object.fromEntriesstructuredClonespeedvalidationflattenbrowserlistreact poseInt8ArraydataviewObservablespropes2016real-timepinobuffersairbnbresolvecheckmatchesUint32ArrayCSSpackage managerES2021es2017npmignorewaapiwindowcloudsearchdeterministicrequiretypedarrayiteratenegative zerotrimLeftcurriedtyped arrayeslintconfigfile systemfast-copysortedsideimportexportArray.prototype.filtersharedarraybuffertypedarrayspluginslicehelperdropqueryserverdataViewshebangfunction.length6to5replayArray.prototype.flatSymbol.toStringTagconcatcodescloudtrailmocktostringtagglobalrulestypeshasOwnPropertynumberCSSStyleDeclarationzeropropertyfpECMAScript 6ttyES2015waitruntimeECMAScript 2023optimistbindsqsregular-expressionscheme-validationlesscssnpmmakeownfunctionalbrowserconsolegradients cssjsdiffoffset$.extendauthdomenumerablelocalfetchObject.iskoreanredirectparserhasOwnfastclonereact-hook-formhelperses-abstractreacttrimdefineuploadpasswordmacosdescriptorlintshamfiledynamodbcommand-linecontainsimmerfullvariables in csslessyuparraybuffersigtermparseglobalThisreact-testing-librarysetterutil.inspectprivate dataformgesturesbyteLengthfantasy-landfast-cloneWebSocketsharedenvironmentvestexit-codesigintlistenerstypeerrorclassnamesprototypeexpressfront-endgetoptform-validationtoolkititerationstylesheetrequestgradients css3css nestingsameValueZerotermbootstrap cssqscollectionurl3dserviceutilityefficientautoscalingargumentmatchpostcss-plugindefinePropertyArrayBuffer.prototype.sliceinopensslmatchAllartcssECMAScript 2019rgbpredictabletypesafehandlerswgetcompile lessforklinkdeepcopymobileformattingdayjsPushcss-in-jsprivateJSON-SchemalibphonenumberStreamspipeflagsfluxgdprterminalcloudfronterror-handlingtransportvaluetoArrayfast-deep-clonepackagesinspectMap.gitignoremapfpsl10nbuffercreateReactiveExtensionsauthenticationargvremovenested cssES3URLclasseschannelcertificatesYAMLpopmotionsimpledbless compilerhooksarrayxtermhttpreadablestreamBigInt64ArraySetjapanesees8traverseponyfillutilBigUint64Arrayreduxjsdomfunctionsjson-schema-validationmockingsyntaxconsumeUint8ClampedArrayless csssequencecoreimmutableMicrosoftposeString.prototype.triminternaldependency managerphonecall-bindtrimStartstringifierTypeScriptWeakSetframercolumnassertioncss lesses2015charactercss variablepersistentstateaststringifyreusestylesbeanstalkescapemoduleenvObject.valuesspecES2017vpcasyncsomeECMAScript 2021inputamazoni18nhookformES2019Reflect.getPrototypeOfagentboundvalidatoruninstallbinarypositivestreamtrimRighttoStringTagECMAScript 2022takeajaxsignalserializationeslint-pluginpromisesymlinkscore-jspreserve-symlinksglobal this valuemkdirvisualiecryptnopeSystem.globalrandomtypanionquote.envsetImmediateexpressionECMAScript 3cloudwatchflatMapES2022execmkdirpdescriptionArray.prototype.includesRFC-6455syntaxerrorenvironmentsloggertranspilevarclassnameUint16ArrayhashstoragegatewayconcatMapgitignoreSymbol
5.5.87

1 year ago

5.5.86

1 year ago

5.4.86

1 year ago

5.4.85

1 year ago

5.4.84

1 year ago

5.4.83

1 year ago

5.4.82

1 year ago

5.4.81

1 year ago

5.4.80

1 year ago

5.4.79

1 year ago

5.4.78

1 year ago

5.4.77

1 year ago

5.4.76

1 year ago

5.4.75

1 year ago

5.4.74

1 year ago

5.4.73

1 year ago

5.4.72

1 year ago

5.4.71

1 year ago

5.4.70

1 year ago

4.4.70

1 year ago

4.4.69

1 year ago

4.4.68

1 year ago

4.4.67

1 year ago

4.4.66

1 year ago

4.4.65

1 year ago

4.4.64

1 year ago

4.3.64

1 year ago

4.3.63

1 year ago

4.3.62

1 year ago

4.3.61

1 year ago

4.3.60

1 year ago

4.3.59

1 year ago

4.3.58

1 year ago

4.3.57

1 year ago

4.3.56

1 year ago

4.3.55

1 year ago

4.3.54

1 year ago

4.3.53

1 year ago

4.3.52

1 year ago

4.3.51

1 year ago

4.3.50

1 year ago

4.3.49

1 year ago

4.3.48

1 year ago

4.3.47

1 year ago

4.3.46

1 year ago

4.3.45

1 year ago

4.3.44

1 year ago

4.3.43

1 year ago

4.3.42

1 year ago

4.3.41

1 year ago

3.3.41

1 year ago

3.3.40

1 year ago

3.3.39

1 year ago

3.2.39

1 year ago

3.2.38

1 year ago

3.2.37

1 year ago

3.2.36

1 year ago

3.1.36

1 year ago

3.1.35

1 year ago

2.1.35

1 year ago

2.1.34

1 year ago

2.1.33

1 year ago

2.1.32

1 year ago

2.1.31

1 year ago

2.1.30

1 year ago

2.1.29

1 year ago

2.1.28

1 year ago

2.1.27

1 year ago

2.1.26

1 year ago

2.1.25

1 year ago

2.1.24

1 year ago

2.1.23

1 year ago

2.1.22

1 year ago

2.1.21

1 year ago

2.1.20

1 year ago

2.1.19

1 year ago

2.1.18

1 year ago

2.1.17

1 year ago

2.1.16

1 year ago

2.1.15

1 year ago

2.1.14

1 year ago

2.1.13

1 year ago

2.1.12

1 year ago

2.1.11

1 year ago

2.1.10

1 year ago

2.1.9

1 year ago

2.1.8

1 year ago

2.1.7

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago