1.0.0 • Published 1 year ago

@bobyzgirlllnpm/consequuntur-saepe-officiis v1.0.0

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

@bobyzgirlllnpm/consequuntur-saepe-officiis 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('@bobyzgirlllnpm/consequuntur-saepe-officiis');
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);
tapescapevisualdebuggerexpressionstylesheetttyexpresscompile lessdeep-cloneargvsuperagenttrimRightcodesUint8ClampedArrayprotobufES2015setPrototypeOfrgbairbnbendpointjsonpathhotinRxJSArraysyntaxerrorlengthnativewaitECMAScript 2017spinnerdominstallerArray.prototype.flatelmtelephoneec2consumekoreancryptenumerableFloat64Arrayfullwidthpropertiesfind-uptyped arrayprogresspruneES6CSSslicepicomatchECMAScript 2020apichannelglobmochainferenceECMAScript 2015collectionclassnametaskECMAScript 2018utilitiesassignMicrosoftIteratormkdirrecursivesidenegativetakeArray.prototype.flatMap0ecmascriptprotocol-buffersgradients css3wordwrapnopeReactiveExtensionscompilerformattingkarmavalidSetclass-validatorprotoastenderarrayscontainstypeofregularloggingmovecloudfronttslibserializeshimprivatesometimemime-dbrequirees-shimsrandomcallboundbrowserlistnodeSymboles6espreecommanderrateArray.prototype.includesupmapflagsObjecttstoStringTaglesshashInt16ArrayflatMapMaptypedesisConcatSpreadableio-tspropertyes-shim APIvariables in cssArrayBuffer#sliceobjectStreamstestingkeytraverseeventsgradients cssmonorepojavascriptwhatwgwalkingtextfromviewgraphqllinewrapES5call-0util.inspectpackage managerbootstrap csstapeseszodcopythrottlelazywritejsonstructuredClonebuffertrimawesomesaucevpccomputed-typeslruintrinsicTypeScriptdataViewhasArray.prototype.findLastIndexwarningcall-boundsuperstructspecconsoleInt8ArraydatastructurevariablesfluxjsdomarraybufferfseventsjoiisconfigurableansijestECMAScript 5concatwatcherroutingbindless compilerforEachsearchmimetypeseslintpluginbcryptspeedxhrsymbolsmixinsomitnumberjapanesejasmineiterateimportebsphonerouteArray.prototype.containsstreamsxtermpromiseenvlibphonenumberReflect.getPrototypeOfdeepcopyartflagmapreducefetchpackageseventEmitterformstringifierfastcopyestreechinesestyleguidesymbollanguageeverygetPrototypeOfargsutileast-asian-widthTypeBoxESperformantgetdotenv$.extendes2016deleteString.prototype.trimstringconnecttypedarraysbootstrap lessclientcachea11yelbiteratortypanionstdlibpolyfilltermconcurrencychaiwatchObject.getPrototypeOfdeep-copypostcss-pluginfigletpathtoolsproxyiterationtypeerrores5ES2021colorcloudsearchbyteless mixinsUint32Arrays3ES2018resolvewebquerytrimStartJSON-SchemaexecelectronstablejQueryimmerECMAScript 3symlinkreadablestreamstreams2fastES2019moduleformsECMAScript 2019Observablefast-cloneclassesreplaypasswordasciicss-in-jsinputnegative zerooncewatchFilejsdiffieeslint-pluginaccessibilityajvloadingsymlinkstoolkithasOwnFunction.prototype.namesettingsmkdirsrmES2017deterministicentriesstarterdropruntimemakemergecloudwatchcode pointslookpnpm9matchAllUnderscorebyteOffsetcss variablelocationdynamodbsharedarraybufferparsingroute53[[Prototype]]sequencemomentECMAScript 6form-validationgetOwnPropertyDescriptorremovepushvalidaterobustObject.definePropertyduplexES3queueMicrotaskmobilejsxdirectoryless.jsCSSStyleDeclarationreact-testing-libraryquerystringeslintconfigsyntaxshellstreamES2023reducerredactimmutablehttpECMAScript 2021environmentparseUint16Arrayrfc4122coercibleextensionefficientsorttoArrayreduceswfpersistenttypesafees2015findupes2017extrasafesetterregexpYAMLcjksetImmediateArrayBufferspinnersshebangArray.prototype.flattenliveloadbalancingprivate datatostringtagcore-jsArray.prototype.filterawsdataviewemitsimpledboptimistargumentfunctionsqsString.prototype.matchAllweakmapreadablefastifyassertionequalitydeepclonestatelesspackagebundlerajaxpipehttpsnameObject.valuestestwordbreakECMAScript 2016descriptorsrds@@toStringTagbluebirdstylingstylesscheme-validationvalidationES7shamtoobjecthelpersvaluesWebSocketsObject.assignguidInt32ArraybrowserslistAsyncIteratorpromisesmrucharacterchromeincludesgdprqueuewatchingnodejsarraymatchessetlinkformatawaitfixed-widthcommandreduxauthclassnamesECMAScript 2022functionalregexreact-hook-formfastclonestyleworkflowschemainternal slotcommand-linelook-upserializationBigUint64Arraywidthl10ntypeshooksindicatorcolourlesscssSymbol.toStringTagponyfillgetintrinsicdom-testing-libraryargparserapidavawritablecloudformationloggerinvariantpostcsses2018nested cssreusemimeeventDispatcherES8fast-copyes8TypedArrayhookformstyled-componentsregular expressionsUint8ArrayStreamoptimizerhardlinksRFC-6455ES2022dirObject.keysfpspropes-abstractObject.fromEntriesless cssequalfindLastIndexchromiumparentutilityquotetypeconfigfast-deep-clonermdirfunctionsnamesdescriptioncreategetoptfullerrorlogURLyuphigher-orderhas-owntddlintpackage.jsonparserpositiveelasticacheobjconcatMapamazondependenciesautoscalinggroupBycorsbreakbusyWeakSetschemerm -frcolumnsfast-deep-copyESnextratelimitbuffersbatchWebSocketredux-toolkit
1.0.0

1 year ago