4.8.85 • Published 10 months ago

@taktikorg/quidem-esse v4.8.85

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

10 months ago

4.8.84

10 months ago

4.8.83

10 months ago

4.8.82

10 months ago

4.8.81

10 months ago

4.8.80

10 months ago

4.8.79

10 months ago

4.8.78

10 months ago

4.8.77

11 months ago

4.8.76

11 months ago

4.8.75

11 months ago

4.8.74

11 months ago

4.8.73

11 months ago

4.8.72

11 months ago

4.8.71

11 months ago

4.8.70

11 months ago

4.8.69

11 months ago

4.8.68

11 months ago

4.8.67

11 months ago

4.8.66

11 months ago

4.8.65

11 months ago

4.8.64

11 months ago

4.8.63

11 months ago

4.8.62

11 months ago

4.7.62

11 months ago

4.6.62

11 months ago

4.5.62

11 months ago

4.5.61

11 months ago

4.5.60

11 months ago

4.5.59

11 months ago

4.5.58

11 months ago

4.5.57

11 months ago

4.5.56

11 months ago

4.5.55

11 months ago

4.5.54

11 months ago

4.5.53

11 months ago

4.5.52

11 months ago

4.5.51

11 months ago

4.5.50

12 months ago

4.5.49

12 months ago

4.5.48

12 months ago

4.5.47

12 months ago

4.5.46

12 months ago

4.4.46

12 months ago

4.4.45

12 months ago

4.4.44

12 months ago

4.4.43

12 months ago

3.4.43

12 months ago

2.4.43

12 months ago

2.4.42

12 months ago

2.4.41

12 months ago

2.4.40

12 months ago

2.4.39

12 months ago

2.4.38

12 months ago

2.4.37

12 months ago

2.4.36

12 months ago

2.4.35

12 months ago

2.4.34

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