2.0.3 • Published 11 days ago

@teamteanpm2024/vel-error-dicta v2.0.3

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

@teamteanpm2024/vel-error-dicta Version Badge

github actions coverage License Downloads

npm badge

Concatenative mapdashery.

example

var concatMap = require('@teamteanpm2024/vel-error-dicta');
var xs = [ 1, 2, 3, 4, 5, 6 ];
var ys = concatMap(xs, function (x) {
    return x % 2 ? [ x - 0.1, x, x + 0.1 ] : [];
});
console.dir(ys);
[ 0.9, 1, 1.1, 2.9, 3, 3.1, 4.9, 5, 5.1 ]

methods

var concatMap = require('@teamteanpm2024/vel-error-dicta')

concatMap(xs, fn)

Return an array of concatenated elements by calling fn(x, i) for each element x and each index i in the array xs.

When fn(x, i) returns an array, its result will be concatenated with the result array. If fn(x, i) returns anything else, that value will be pushed onto the end of the result array.

install

With npm do:

npm install @teamteanpm2024/vel-error-dicta

license

MIT

notes

This module was written while sitting high above the ground in a tree.

flagsWeakSetenumerableairbnbeslintconfigdirglobregexpchannelconsumesidexdgrandompromisesgroupBynameassertsclassnamelanguageWebSocketTypedArraywaapisharedcommandwordbreakemitsetImmediateajaxstreams2ECMAScript 2018searchastdeep-copywatcheventDispatcherECMAScript 2022ECMAScript 2015functionalcomputed-typestoolkitprotocol-bufferssymlinkES8zodoutputlinuxio-tscoreconnectquoteieargparsedateecmascriptwalkingvariables in cssdatastructurepackage managerduplexutil.inspecttostringtagfastcopyeveryhardlinkscss-in-jsajvflatcurriedeslint-plugintrimLeftpushcss lesssafedebugcolourresolvecharactersECMAScript 2023hooksinputforEachsortedanimationshellcmdchromiumcss variableESisBigInt64Arrayinstallerparentcssstringifierutilitiesspeedpurecompile lesscollectionnumberstylingBigUint64Arrayless compilerhandlersbrowserslistes6findLastfast-cloneenvironmentObject.getPrototypeOftranspilerrecursivejavascriptautoprefixerformatrfc4122viewtypedarrayinstalles2017validationexeescapereact-hooks256wgetfunctionbabel-corepackagesES2019hookformaccessibilitytrimEndECMAScript 2017json-schema-validationcryptovestemojisyntaxerrorObservablehttpsdefinePropertystablejestfigletregular expressionsargumentsinterruptsES2018ES3parserUint8ArrayyamlbyteLengthexpressstringtapenegative zeroformsrequeststatusReactiveExtensionsStreamsinferenceloggingbyteOffsetregularpyyamldeepcloneencryptioncjklimitedstyle[[Prototype]]dotenvarraybufferextensionpreserve-symlinksflagi18ncolorsstreampositivepoint-freeuninstalles8coerciblees5babelmatchweakmaptouchfastwatcherxtermeditordeep-cloneECMAScript 2019filterfindlruURLdefinegroupgetOwnPropertyDescriptorclassesbreakjapaneseimporttypesafehttpkeyUint16ArraydroplinttrimStartenderdirectorydependenciesbootstrap cssObject.ismoduletraverseObject.fromEntriescensorTypeBoxgetintrinsicfsPromisereducepersistentconcatfolderbufferreadmkdirseventEmittermimetypesramda0guidshrinkwrapsigintjasmineES7ratelimitkarmaredux-toolkitcloneFunction.prototype.namecall-boundoffsetshebangtypeerrorArrayBuffer.prototype.slicesuperagentfile systemmoveauthenticationjQueryWebSocketsfileisConcatSpreadablecallboundpnpm9testerfindLastIndexlinkES2023sortPushObjectkoreanwritablevaluethroatbluebirdexit-codecurlshamMapphoneextraArrayBuffertrimRightserializationgetECMAScript 5find-upthreecharacterqueuetapsameValueZeroless.jsbannerworkspace:*dataspawnchromereadablereadablestreamuser-streamsschemeponyfillclientcode pointsupproppackage.jsonarrayerrorcss nestingescliflatMapflattencore-jsreact poseperformantmonorepotestingchinesebundlersignalsthrottle3dUint8ClampedArraymapoptimizerRegExp.prototype.flagssequenceurlslinewrapdataViewAsyncIteratorequalshimjwttssigtermStyleSheetCSSconfigurablegetPrototypeOfpropertiesexpressiontc39serializerdebuggerstylestermstructuredClonegradients css3wraplessstyleguidevaluesvariablestoolsArray.prototype.flattentoStringTagchaiECMAScript 3qsargvwatchFilefast-copymodulesunicodeslotECMAScript 2021springmime-dbprocessnpmInt16ArrayFloat32Arraypopmotionscheme-validationpathconfigfullindicatoropengraphqljsomitUnderscoretslibbrowserhigher-orderES2022optimistloadingpreprocessortypestacitinspectcallbindpackageString.prototype.matchAllJSON-Schemaopenerhashopenswebsiteartmulti-packageeslintpluginbddprotobufweaksetvartddtypanionestreeRegExp#flagsjsdiffxdg-openvalidatorparentscolumninvariantwindows@@toStringTagHyBiteststyled-componentstakeRxJSassertionrobustObservablesequalityenvjsonschemamiddlewarepolyfillbufferszerosignalobjArray.prototype.filterES2015ESnextsettingsconcurrency_.extendnativenamesRxcodespropertyeventsawaitgradients cssnegativequeryspinnerschemarequirevisualstatelessform-validationiddependency managerframerObject.assignmatchesdeterministiccolorsymlinkssanitizeES5validateminimalworkerprettyconcatMap.envlet-0apollogetteriteratorl10nfastclonecopyassertiterationeast-asian-widthless mixinsexitloggerfantasy-landsetruntimegesturesdescriptionES2021superstructreal-timewriteECMAScript 2016react-hook-formnope$.extendbusyirqcheckprivate dataArrayBuffer#slicecompareremoveArrayreact-testing-librarycreatemetadataobjectregexes2015symbolweblookidlefullwidthtoobjectauthtypeofstylesheetInt32Arrayeslintmomenttypescripttypebcryptcommand-linegdprECMAScript 2020whatwgprototypefpfrom
2.0.3

11 days ago

2.0.2

12 days ago

2.0.1

13 days ago

2.0.0

14 days ago

1.0.0

14 days ago