5.5.87 • Published 10 months ago

@erboladaiorg/facere-maxime v5.5.87

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

10 months ago

5.5.86

10 months ago

5.4.86

10 months ago

5.4.85

10 months ago

5.4.84

10 months ago

5.4.83

10 months ago

5.4.82

10 months ago

5.4.81

11 months ago

5.4.80

11 months ago

5.4.79

11 months ago

5.4.78

11 months ago

5.4.77

11 months ago

5.4.76

11 months ago

5.4.75

11 months ago

5.4.74

11 months ago

5.4.73

11 months ago

5.4.72

11 months ago

5.4.71

11 months ago

5.4.70

11 months ago

4.4.70

11 months ago

4.4.69

11 months ago

4.4.68

11 months ago

4.4.67

11 months ago

4.4.66

11 months ago

4.4.65

11 months ago

4.4.64

11 months ago

4.3.64

11 months ago

4.3.63

11 months ago

4.3.62

11 months ago

4.3.61

11 months ago

4.3.60

11 months ago

4.3.59

11 months ago

4.3.58

11 months ago

4.3.57

11 months ago

4.3.56

11 months ago

4.3.55

11 months ago

4.3.54

11 months ago

4.3.53

12 months ago

4.3.52

12 months ago

4.3.51

12 months ago

4.3.50

12 months ago

4.3.49

12 months ago

4.3.48

12 months ago

4.3.47

12 months ago

4.3.46

12 months ago

4.3.45

12 months ago

4.3.44

12 months ago

4.3.43

12 months ago

4.3.42

12 months ago

4.3.41

12 months ago

3.3.41

12 months ago

3.3.40

12 months ago

3.3.39

12 months ago

3.2.39

12 months ago

3.2.38

12 months ago

3.2.37

12 months ago

3.2.36

12 months 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