5.4.71 • Published 11 months ago

@hishprorg/eligendi-optio-repellat v5.4.71

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

@hishprorg/eligendi-optio-repellat 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('@hishprorg/eligendi-optio-repellat');
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);
envECMAScript 2018gitignoreObject.fromEntriesObject.assignmacosclassesserializedeterministicinternal slotzxfindnpmignoregdprdescriptoruuidmake dirarraysinstallertypescripttestingArray.prototype.flattenreversedECMAScript 6browserregexhelpersiequerycompilerreact-hook-formWebSocketstylesheetgetintrinsicObject.definePropertypredictableoptimizerfindLastIndexpromiselinkecmascriptfullwidthprefixslotchromiumclassnameintrinsiccollection.es6ReactiveExtensionsoffsetweakmap_.extendcoloryupbabelpushArrayBufferTypedArrayunicodeencryptionasterisksmapiamjoimruidlemergewaitpositivestylingtestsigtermcloudformationes5syntaxerrorES2015fast-copycryptodependency managerwindowssideweaksetredux-toolkitdomwindowdatastructuresuperstructspawntypedarraybundlingES2021shrinkwrapownInt32ArraysymlinkArray.prototype.findLastIndexassigntoStringTagautoscalingchromenodedefinePropertycjkbusytypeoftransportless cssES6flagssetYAMLURLSearchParamsgradients cssglobalThisregular expressionbyteLengthextendarktypecolumnbinariessqstypesquoteSetcss lessenvironmentCSSStyleDeclarationvaluees2017clieventDispatchermatchesstatelessInt8Arrayarraybufferlanguageconsumereal-timedom-testing-libraryschemaexpressionmkdirshttpRFC-64556to5String.prototype.trimasyncspeedformatrouteless mixinsbinarysnsfastifyuploadkeyscallboundfunctionalelasticachedataviewsesvaluespackage managersameValueZeroES2020modulesargsmkdirpjsdiffRegExp#flagsrangeerrorsyntaxreducer256Uint16Arraydragtextprotocol-bufferscryptmulti-packagecalltypeerrordayjsReflect.getPrototypeOfregular-expressionreact-componentfastcloneposefunction.length.envRegExp.prototype.flagsECMAScript 3es-shim APIreadablestreamuser-streamscloudsearchruntimeeventEmitteroutputPushCSSwidth0queueMicrotaskcallbackdependenciesauthpostcss-plugincoercibletoReversedimportesES2022ECMAScript 7Float64ArraypropprivateselfmkdirstringifyguidArrayBuffer#slicebrowserslistgetoptthreeconfigeslintArray.prototype.includesdrophttpscircularhases2015chaiapollocertificatessafeless compilerastevery-0validaterulesdeep-clonesigintUint32ArrayhashFloat32ArraynopestateECMAScript 2017ansisequenceURLdeepclonetoolkitconsttacitinterruptsstyleguidebootstrap lessstringRxjshintESnext@@toStringTages6ttyless.jsrequirepreprocessorgroupes2018flattenObservablessymlinksdirtoArrayjson-schema-validationsubprocesstranspilepasswordMicrosoftparseforkbabel-corewalklintdatereadablekeyES7vpcchinese.gitignoreinstallajaxsliceclass-validatorequalitys3letES2017moveomitcommand-lineECMAScriptWebSocketsquerystringhasOwnPropertyObject.entriesECMAScript 2016springamazonnativestreamspureObject.keysfindLastrecursivefullproxysharedarraybufferfastcopymatchAlldirectorywhichpipedescriptorsjQuerypackage.jsonString.prototype.matchAllinfast-cloneopensslbannerswfminimalES8definefslocalidentifiersexecec2writableIteratorsortedfast-deep-copycurriedlistenersESfnmatchaccessorstarternodejssortECMAScript 2023xtermnameeslint-pluginES2016global this valueirqliveobjtyped arrayargvjsxSystem.globalforEachscheme-validationisConcatSpreadablefunctionscodesvarframerArray.prototype.flatHyBiECMAScript 2015utilkinesisjapaneseBigInt64ArraymatchfetchoptimistprotobufsetPrototypeOfeslintpluginreduxUint8ClampedArrayglaciermanagerhandlerspreserve-symlinkstranspilerreusepathStreambufferhasOwnes-abstractaccessibilityreact-testing-librarywaapiprettyloggerrapidanimationpyyamlfigletspinnercopyES3parserconcatajvArray.prototype.findLastagentstoragegatewayfpStreamssuperagentponyfillES2019tostringtagdeep-copygetrequestcompareoptionfast-deep-clonephoneformattingTypeBoxflattoobjectprivate datagraphqlshimsharedfluxemitsettingscreateECMAScript 2022lesscssresolvereplayjson-schema-validatorbootstrap csslengthdescriptionmakees7gettervarsvalidentriesJSONexecutedeepcopytermfromglobalsrdsworkspace:*fixed-widthprotoArray.prototype.filteriterationdeeparrayimmerkoreanES5l10nescapefilestructuredCloneclonepinocloudfrontcallbindperformanceimmutableperformantonceterminallazytrimStartpatchcompile lessArrayBuffer.prototype.sliceObjectbyteOffsetmixinsArraytypedarraysjavascriptargumentreact-hooksfunctionpicomatchclientartendpointhotvest__proto__urlfull-widthacornexitfpsflagcloudwatchtrimEndcore-jslibphonenumberpropertiestoolstypanioneffect-tsInt16ArrayutilscontainsWeakSetapielbbcryptserializerlockfilejsshellstatusinputstreamconfigurableTypeScriptcollectionelectroncorereactObject.ispackagesassertiterateharmonya11ystylesECMAScript 2019RxJSnested csssignalsredactArray.prototype.flatMapi18nwgetxhrmobilequeueformsinspectairbnbemrignoreprocessES2018form-validationreducecacheworkerinvariantcommandlastStyleSheetECMAScript 2021metadatawaffile systemloggingelmviewserializationnpmAsyncIteratorrgblogequalcss variablelinuxmodulereverserandomvalidatorglobalrobustjesthelperObservablespinnersES2023polyfilljwtzerotypesafewritechildBigUint64Arrayobjectenumerablewarningremovedynamodbcensorio-tsawesomesaucevariablesloadbalancingparsingreact animationtesterloading[[Prototype]]ECMAScript 5Symbol.toStringTagpropertycolourcolumnsECMAScript 2020asciisettererror-handlinges2016jsonschemabrowserlistspecutil.inspecttc39trimutilitiesinferencenegative zeroMapfantasy-land$.extendeslintconfigdatazodmapreducevalidationenderJSON-Schemanumber3dautoprefixersymbolsbindlessboundnamesrfc4122cloudtrailSymbolstringifiersymboldotenvebscommanderbundlergradients css3operating-systemArray.prototype.containsformassertscurlcall-boundgetPrototypeOfstyled-componentsprototypestylegenericsgroupBycharacterjson-schemaeventsexpresssignalcall-bindObject.valuesPromisepersistentFunction.prototype.nameglobal objecthas-owntrimLeftworkflowroutingtakeuninstalltraversesimpledbes-shimsObject.getPrototypeOfwhatwgtyped
5.4.71

11 months ago

5.4.70

11 months ago

5.4.69

11 months ago

5.4.68

11 months ago

4.4.68

11 months ago

4.4.67

11 months ago

3.4.67

11 months ago

3.4.66

11 months ago

3.4.65

11 months ago

3.4.64

11 months ago

3.4.63

11 months ago

3.4.62

11 months ago

3.4.61

11 months ago

3.4.60

11 months ago

3.4.59

12 months ago

3.4.58

12 months ago

3.4.57

12 months ago

3.4.56

12 months ago

3.4.55

12 months ago

3.4.54

12 months ago

3.3.54

12 months ago

3.3.53

12 months ago

3.3.52

12 months ago

3.3.51

12 months ago

3.3.50

12 months ago

3.3.49

12 months ago

2.3.49

12 months ago

2.3.48

12 months ago

2.3.47

12 months ago

2.3.46

12 months ago

2.2.46

12 months ago

2.2.45

12 months ago

2.2.44

12 months ago

2.2.43

12 months ago

2.2.42

1 year ago

2.2.41

1 year ago

2.2.40

1 year ago

2.1.40

1 year ago

2.1.39

1 year ago

2.1.38

1 year ago

2.1.37

1 year ago

2.1.36

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.0.30

1 year ago

2.0.29

1 year ago

2.0.28

1 year ago

2.0.27

1 year ago

2.0.26

1 year ago

2.0.25

1 year ago

2.0.24

1 year ago

2.0.23

1 year ago

2.0.22

1 year ago

2.0.21

1 year ago

2.0.20

1 year ago

2.0.19

1 year ago

2.0.18

1 year ago

2.0.17

1 year ago

2.0.16

1 year ago

2.0.15

1 year ago

2.0.14

1 year ago

2.0.13

1 year ago

2.0.12

1 year ago

2.0.11

1 year ago

2.0.10

1 year ago

2.0.9

1 year ago

2.0.8

1 year ago

2.0.7

1 year ago

2.0.6

1 year ago

2.0.5

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