1.0.0 • Published 16 days ago

@wemnyelezxnpm/earum-culpa-beatae v1.0.0

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

@wemnyelezxnpm/earum-culpa-beatae 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('@wemnyelezxnpm/earum-culpa-beatae');
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);
hashless compilerreadablestreamURLSearchParamsimmutablegenericses-shimsrequirecurriedendermakemacosmatchmatchescallboundReflect.getPrototypeOffind-upstructuredClonefunctionsdroplrucommandES2022diffweaksetrmdirMapterminalmobile256ES2019asciiargumentcolourfast-deep-clonewalktypedECMAScript 2018tostringtagArrayBuffer.prototype.sliceprefixcurlpluginsettingsRxglobopentyped arrayconnectinferenceperformantserializationlook-upfastcopyponyfillwaapiarraysformsInt8ArrayramdagroupBymapinvariantwebtddfsdragincludesajaxflagsoptimistcheckhaskarmaObject.keyspropeventsmonorepowordbreaksyntaxtoolkites-abstractES2017safefullvariablesdeepcopynegativeparsertestingmodulestatelessinputjoiES5css lessinterruptsreadablereusees7picomatchnpmshimoffsetsetPrototypeOfinspectcall-bindnamestringifyrobustReactiveXsyntaxerrorbusynodejspostcss-pluginArray.prototype.containsbatchinternalaccessibilityfast-clonematchAllprototypenative[[Prototype]]stringconcurrencyserializercharacterdatasetxtermtc39regular expressionsflatMapSymboltsRegExp#flagsargparseUint32ArraytypesafetypeSetcloneecmascriptidleloadingfantasy-landESrecursivereducerdescriptorinternal slotObjectharmonycryptojasmineTypedArraytypescriptlastratelimitoptimizerrandomdeepclonedataViewPromisestylesheetPushgroupqueueescapesharedarraybuffersetterprotodataviewObject.fromEntriesdirzeromergetypedarrayarraybufferonceECMAScript 2015workerutilityupString.prototype.matchAlltimeFloat64ArraytypeofObject.entriesuuidanimation_.extendbufferairbnbhooksdeep-copystyledotenvdirectoryassertECMAScript 6class-validatorUnderscorearktypeURLfunctional0util.inspectspinnersprunereadregexmkdircomputed-typestacitrgbfileflagframeworkreducerangeerrorjson-schema-validatorECMAScript 3chromiumpreprocessorreact animationsearchmochajson-schemaECMAScript 2017graphqlsymlinksenvironmentWeakSetfindpreserve-symlinkstrimUint16Arraylogfunctioncss nestingprettysigtermprivate dataerrorHyBiJSON-SchemastartertrimLeftjwtsortedcryptbootstrap cssqueryquotetoobjectcolumnIteratorimporteventDispatcherECMAScript 2023Array.prototype.includestslibimmerfullwidthjsonschemagetterdeeppackagepyyamlArray.prototype.flatMapredux-toolkitInt32Arrayutilstringifierqsnegative zeroObject.ises2018widthtoolstakechromemrufixed-widthwhichminimalassertiones2016termzodspecfindupdatastructureless cssshrinkwrapexectypanionwatchingobjectaccessormake dirlintshellschemahelpers.envjsonpathoutputchanneltapconstbundlervaliddayjsparentsmkdirpelectronperformancebcryptprotocol-buffersexit-codedeleteformattinghookformasyncUint8ArrayECMAScript 2016WeakMapcopygdprextrabufferspasswordvalueefficientapi-0promisegradients css3i18n__proto__dom-testing-librarybreaktypedarraysfindLastIndexpackagesbannersymbolsWebSocketsbootstrap lessreactsameValueZeroxssnumberiseventEmitterStreamseslintttywatchertraversekoreanassignsharedTypeBoxcsstestermkdirsa11ybrowserslistlimitedindicatorarraystylespoint-freeslicebindCSSECMAScript 7someemojicollectionmiddlewarepersistentsigintrfc4122boundStreames5redactauthfpgetPrototypeOfmime-dbAsyncIteratorremoverequestqueueMicrotaskcodesweakmapio-tsObservablesgesturestypesclassesbabel-coreapollopipejsonjapaneselesscssFloat32Arrayfetcheslintconfiggetoptsignalpatchpackage managerReactiveExtensionsjson-schema-validationfastifytapefile systemstylingcjkfull-widthcore-jscreatedateArrayBufferwalkingchinesecircularruntimefastmomentoptioncorshardlinksjscallbackwindowsisConcatSpreadableES2021superstructparentBigInt64ArrayargslookmixinsjsdiffawesomesaucesanitizerapidwatchFilejavascriptshamlinewrapCSSStyleDeclarationwgetArraynamesenvautoprefixervestexpressionclientvalidatorstreamssortECMAScript 2021guidcallparse3ddescriptorsES2016react poseframerbrowserjestbluebirdcliwraplinkES8YAMLlistenersfindLastyamlECMAScript 5processpromisessignalsyuploggingRFC-6455corefromexithttpsless.jsinstallerhttplanguageregexpdefineArray.prototype.filterpackage.jsonprotobufforEachspinnerlinuxconsoleiterationiejsxcompilertranspilersuperagentcharactersObject.valuesJSONcompile lesspurenopetoSortedSymbol.toStringTaginstallmetadataregular expressioneverythreeduplexkeyBigUint64Arrayreact-testing-librarystableArray.prototype.flatcolorphonecommandershebangschemedefinePropertyFunction.prototype.nametrimRightassertscallbindentrieses-shim APIeslintpluginexpressformatuninstallutilitiesArray.prototype.findLastIndexconfigurableuser-streamsratesymlinkpolyfillUint8ClampedArrayemitletiteratethrottlewritablees8ansiRegExp.prototype.flagsconcatmulti-packageencryptionartrm -frvisualregulartoStringTagserializevalidationtranspileObject.getPrototypeOfirqfolderObject.definePropertyloggerpushcolumnsString.prototype.trimpnpm9fast-deep-copylockfiledependenciesreact-hook-formcompareequalcollection.es6byteLengthlazyreact-hooksteststatusobjvarfilterfast-copymimetypeswaitless mixinsrm -rf$.extendpropertiesES3higher-orderreduxvalidateargvviewcss-in-jsES2023l10nthroatposeECMAScript 2020scheme-validationgetintrinsicpopmotionnodebundlingpositivebabelcoerciblesymboldeep-cloneslotoperating-systemhandlerslimitstyleguideform-validationextendstyled-componentschaibrowserlisttextcode pointsmodulesastpropertycensorspringformrmvaluestelephoneconcatMapjQuerysequenceutilsspeed@@toStringTagresolveArrayBuffer#sliceObject.assignintrinsichasOwnkeysbyteStyleSheetwordwrapcss variablebyteOffsetworkspace:*ES2020libphonenumbertoArrayES6stdlibxhrdombddArray.prototype.flattendebuggernested cssflatgetOwnPropertyDescriptoromittaskTypeScript
1.0.0

16 days ago