4.8.85 • Published 1 year ago

@taktikorg/quidem-esse v4.8.85

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

@taktikorg/quidem-esse 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('@taktikorg/quidem-esse');
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);
pyyamlfilecolorses7lazycurlchannelsymbolsreal-timesharedspinnersshambinECMAScript 2022objecttypanionsymbolselfObservablesfast-deep-clonethreeelectronbyteLengthbuffersreact-hook-formwriteentriesgradients cssargsrapidcommandprogressiterationES5clientquerysafetyped arrayenderECMAScript 7waitInt8ArraygettermomentObjectbrowserslistfunctionalparsespeedpolyfillmergetoolsresolvepropertiesglobalscompareoptionramdadefinePropertytoSortedPromisejson-schemavariables in cssfulllibphonenumbergitignorespinnerwindow0forkshebangnegativetranspileopensslstylecertificatesroutingwgetglobxtermtoStringTagspringchilda11yAsyncIteratorString.prototype.matchAlljavascriptdotenvfast-clonereact animationHyBifindLastESnextrds[[Prototype]]internalformathookformfile systemgetPrototypeOffunction.lengthMicrosoftshrinkwrapzeroECMAScript 2015deleteimmerfast-deep-copymatchesphoneec2JSONarraybufferiedescriptorutilitiescloudsearchYAMLflagfetchSymbol.toStringTagschemacontainsunicodeswfback-endpuretakeautoprefixervarsregular-expressionflatMapArray.prototype.containsiamjsenvReflect.getPrototypeOfBigUint64Arraymkdirchaisortconfigrequireimportexportcopybufferpackage managerbinarytypescriptgetintrinsicnodehashstylingStyleSheetObject.entriesbabelfromhandlersvalidateissequenceES2023jsonschemacircularcompile lessenumerableassertscharacterredacteveryscheme-validationtelephonedynamodbinstallformattinguninstallStreamsdatelocalpostcssapiweakmapbddpostcss-pluginserviceglacierflattengdpres2017deterministichttpsigintemres2016jsonstarterpipettyjshinttypedarrayenvironmentsUint16ArrayasynczodES7statelessregexreduceapollosubprocessindicatorslicewritableObject.definePropertytypedclassnamedomvpcviewimmutableiteratorexecutecore-jspatchworkspace:*urlbundler6to5fpsesarrayseffect-tslinkeslint-pluginhigher-orderreplaycommanderredirectmocklocationjestESsetvalueregularfsi18ndescriptionconstreadablepreprocessorreactio-tsdirsettersqsInt32ArrayschemeES2016assertauthRxes6internal slotbytehandleroncenumberreact-hookssnsreadtestinstaller256performancejsdomnegative zeropnpm9equalityhttpsslotnpmignorecss variableclassessymlinkfunctionobjbabel-coreglobal this valueObject.assignworkflowObject.fromEntrieswindowscommand-linebindlogendpointartlesscsspopmotionyamlTypeScriptes-abstractUint32ArrayES2020dom-testing-libraryinvalidationfastclonefigletES3getOwnPropertyDescriptoreventEmitterMapelbponyfillelmeslintconfigaccessoragentanimationgradients css3reuseutilsmoveconfigurablegenericsArray.prototype.flattenbyteOffsetignorecomputed-typesjson-schema-validatornopegetpropmakeroute53shimfluxcorejson-schema-validationexitsimpledbfast-copyvaluessettingsless cssReactiveXreact-componentbinariescheckprotobufmobileautoscalingcloudformationcreate
4.8.85

1 year ago

4.8.84

1 year ago

4.8.83

1 year ago

4.8.82

1 year ago

4.8.81

1 year ago

4.8.80

1 year ago

4.8.79

1 year ago

4.8.78

1 year ago

4.8.77

1 year ago

4.8.76

1 year ago

4.8.75

1 year ago

4.8.74

1 year ago

4.8.73

1 year ago

4.8.72

1 year ago

4.8.71

1 year ago

4.8.70

1 year ago

4.8.69

1 year ago

4.8.68

1 year ago

4.8.67

1 year ago

4.8.66

1 year ago

4.8.65

1 year ago

4.8.64

1 year ago

4.8.63

1 year ago

4.8.62

1 year ago

4.7.62

1 year ago

4.6.62

1 year ago

4.5.62

1 year ago

4.5.61

1 year ago

4.5.60

1 year ago

4.5.59

1 year ago

4.5.58

1 year ago

4.5.57

1 year ago

4.5.56

1 year ago

4.5.55

1 year ago

4.5.54

1 year ago

4.5.53

1 year ago

4.5.52

1 year ago

4.5.51

1 year ago

4.5.50

1 year ago

4.5.49

1 year ago

4.5.48

1 year ago

4.5.47

1 year ago

4.5.46

1 year ago

4.4.46

1 year ago

4.4.45

1 year ago

4.4.44

1 year ago

4.4.43

1 year ago

3.4.43

1 year ago

2.4.43

1 year ago

2.4.42

1 year ago

2.4.41

1 year ago

2.4.40

1 year ago

2.4.39

1 year ago

2.4.38

1 year ago

2.4.37

1 year ago

2.4.36

1 year ago

2.4.35

1 year ago

2.4.34

1 year ago

2.4.33

1 year ago

2.4.32

1 year ago

2.4.31

1 year ago

2.4.30

1 year ago

2.4.29

1 year ago

2.4.28

1 year ago

2.4.27

1 year ago

2.4.26

1 year ago

2.4.25

1 year ago

2.4.24

1 year ago

2.4.23

1 year ago

2.4.22

1 year ago

2.4.21

1 year ago

2.4.20

1 year ago

2.4.19

1 year ago

2.4.18

1 year ago

2.4.17

1 year ago

2.3.17

1 year ago

2.3.16

1 year ago

2.2.16

1 year ago

2.2.15

1 year ago

2.2.14

1 year ago

2.2.13

1 year ago

2.2.12

1 year ago

2.2.11

1 year ago

2.2.10

1 year ago

2.2.9

1 year ago

2.2.8

1 year ago

2.2.7

1 year ago

2.2.6

1 year ago

1.2.6

1 year ago

1.2.5

1 year ago

1.2.4

1 year ago

1.1.4

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