5.4.71 • Published 1 year ago

@hishprorg/eligendi-optio-repellat v5.4.71

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

1 year ago

5.4.70

1 year ago

5.4.69

1 year ago

5.4.68

1 year ago

4.4.68

1 year ago

4.4.67

1 year ago

3.4.67

1 year ago

3.4.66

1 year ago

3.4.65

1 year ago

3.4.64

1 year ago

3.4.63

1 year ago

3.4.62

1 year ago

3.4.61

1 year ago

3.4.60

1 year ago

3.4.59

1 year ago

3.4.58

1 year ago

3.4.57

1 year ago

3.4.56

1 year ago

3.4.55

1 year ago

3.4.54

1 year ago

3.3.54

1 year ago

3.3.53

1 year ago

3.3.52

1 year ago

3.3.51

1 year ago

3.3.50

1 year ago

3.3.49

1 year ago

2.3.49

1 year ago

2.3.48

1 year ago

2.3.47

1 year ago

2.3.46

1 year ago

2.2.46

1 year ago

2.2.45

1 year ago

2.2.44

1 year ago

2.2.43

1 year 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