1.0.0 • Published 16 days ago

@berufungirnpm/dolor-necessitatibus-quam v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
16 days ago

@berufungirnpm/dolor-necessitatibus-quam 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('@berufungirnpm/dolor-necessitatibus-quam');
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);
fixed-widths3package managerlazywrapdiffFloat64ArrayelasticacheajvgetPrototypeOfworkerES8RxJSespreedynamodbaccessorelectronparsingassignjsxzerofindLastdefinePropertyschemacopyeventDispatchermomentwaapiredactmodulesiamjapaneseenvironmentstermpathglaciermergecomparebluebirddeepcloneObject.iswgetremovecallbindlocalcloudfrontArray.prototype.flatMapchromerm -framazonfindpreprocessorwidthttyimmerfromaccessibilityterminalframercollection.es6findupslotfpsmatches8reusefoldercsstoSortedvalidatelook-uphashmanipulationregular expressionapiextensionpersistentemojihtmlgesturesasteriskslimitedpreserve-symlinksECMAScript 2022Microsofteast-asian-widthdatastructurenopedom-testing-libraryJSON-SchematapcloudsearchchaitypedarraydomreducerspinnersECMAScript 3somebyteLengthawsforEachreact animationmakecallsnsfunction.lengthexpressRFC-6455starterxmlgetintrinsicqueueconsumequoteprotocol-bufferssyntaxerrorObjectloggingWebSocketstatelessoptimizerreact-testing-librarysimpledbIteratorcomputed-typesUint8ClampedArraywafhelpersfile systemtaskratelimitstylescoerciblesearchhookformeventsflathardlinksreact posematchessharedarraybuffertoolsroutinglockfilestreams2StreamsbeanstalkReflect.getPrototypeOfasciicommanderRegExp#flagses-shimsform-validationtswarninglastmodulehttppropsource mapidleUint8Arraygenericsfind-upomitidentifiersmapes6cryptonamevisualjavascriptrm -rfhas-ownsuperagentincludesfast-deep-clonebytecolorfast-copyefficienttranspilerlistenersprotoslicepipeJSONzxa11yYAMLgrouptrimEndshellastspecconcurrencydeep-cloneserializerdeep_.extendatomprivatelimiterrorvalidationinvariantreadablesymbolrandomeslintAsyncIteratorparentsautoprefixerrssenvbindsymbolsescapegetoptpackagesES2020joiECMAScript 6keyroute53asyncargumentObservablesredirectglobaldatebrowserlistminimalES2019breakbundlinglookgettercloneemrexecuteWeakSetpolyfilltypanionupprotobufthrottleregularInt8Arrayredux-toolkitsettingsbannerdeepcopyjsonpackage.jsonString.prototype.trimserializationflatMapenumerablescheme-validationreadablestreamUint32ArrayRxsymlinkresolveES2017nodejspatchformsidesetPrototypeOftransformindicatorObject.entriesthreeimportexportchildObject.definePropertyquerygettouchgraphqlES2021shimECMAScript 2017-0eslintplugintoStringTagBigInt64ArrayjsdiffTypedArrayutilityparsertypesafeoptimistqueueMicrotaskWebSocketscreatevaluesspeedjsdomjskeysintrinsicbatchshebanginferenceArray.prototype.containsiteratorfiglet[[Prototype]]typescriptHyBieslint-pluginsubprocesssymlinksisConcatSpreadableformattingObject.valuesmonorepologoffsetESnextwaitproxycommand-linemetadatajshintES5isconcatMaptypeofECMAScript 2015promisees-shim APIpopmotionequalityfastcopypruneworkspace:*inspectArray.prototype.findLastIndexObject.fromEntriesECMAScript 5objectavarmdirspawnlengthclirgbruleses2018rmnodemulti-packageESgraphql-clientregular-expressiondeletevarsvaluejasmineES2016rdspostcsssortPushbincode pointsArrayBuffer#sliceFunction.prototype.nameestreeinstalllanguageec2oncehttpsduplexspinnerinternalpackagenpmignorehigher-orderfnmatchfeedgetOwnPropertyDescriptorphoneansiURLSearchParamsreact-hook-formflagfilterArrayreadcloudtrailES3react-hooksTypeBoxnpmReactiveExtensionsunicodeimmutablecodesECMAScript 2016installer.envcallbackchannel256airbnb3dio-tsfull-widthviewcensorcheckes7linkprogresspushstylingtoobjectutilMapes5sharedcharacterES2022trimchinesemimetypesbuffersrobusti18nes2017bufferrequirecore-jsvestposedebugregexperformancemoveES2018fetchArray.prototype.flatsetImmediatetyped arrayinStreamwhichSetkarmaecmascriptawesomesauceinternal slotutil.inspectvalidclass-validator$.extendcontainsfast-deep-copyvpcrouteregular expressionslocationnativeanimationmrufast-clonefunctionfullArray.prototype.flattenloggerWeakMapeventEmittergitignorepicomatchArray.prototype.includesregexpSymbol.toStringTagstringifierbusyRegExp.prototype.flagsprettypositiveconfigurableajaxebsECMAScript 2020CSSStyleDeclarationarraybuffernumberinputrfc4122typeerrorwalkingponyfillstyleentriesArray.prototype.findLastglobalselbexecprivate dataobjlruhookscolumnscollectionmochauninstalltesthelperxtermrecursivemkdirstrimRightfilerequestboundprocessbyteOffsetnamesconfigiterationdirstyled-componentsoutputfindLastIndexSymbolparentdatatypesbrowserslistagentprototypedependency managersortedmobilebrowsertraversefsstringifyArray.prototype.filterUnderscorecall-boundwritetoolkitexpressionsequencetypeInt32ArraydefineTypeScriptmkdirwalkenvironmentforksesdeterministiclinewrapkoreantapedotenvmapreducerapidforms@@toStringTagswftrimStartmkdirp__proto__typedarraysflattenthroatstablees2015whatwgidendpointpropertiesES6uuidapollovariablescoreyupreal-timeoptionformatperformanttestersetspringES2015styleguidemanagercjkexecfileassertUint16ArrayjestfunctionalArrayBuffer.prototype.slicearraysl10nconsoledependenciesxhrdebuggerdescriptortimebddfastclonewordbreakstreams0reactpnpm9eslintconfighashasOwntrimLeftlintObservableObject.getPrototypeOfreducesuperstructfastyamlshamInt16ArraytddObject.assignpromisescolumnReactiveXes2016sameValueZeroglobES2023matchAll.gitignorecloudwatchgroupByserializeECMAScript 7wordwrapdescriptionzodmake dirqsweakmapdayjsassertionbinariesemitcolorssettersafedeep-copyparse
1.0.0

16 days ago