1.1.18 • Published 1 year ago

@kollorg/debitis-voluptas v1.1.18

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

@kollorg/debitis-voluptas Version Badge

github actions coverage License Downloads

npm badge

Concatenative mapdashery.

example

var concatMap = require('@kollorg/debitis-voluptas');
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('@kollorg/debitis-voluptas')

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 @kollorg/debitis-voluptas

license

MIT

notes

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

StyleSheetframeworkES6deterministicgetIteratorprivatetoStringTagenvironmentECMAScript 2017httpscss-in-jsArray.prototype.findLastIndexfetchspinnermockurlObject.definePropertyisConcatSpreadabledeep-copytestingform-validationanimationcsstostringtagArray.prototype.includesfastclonerdsqueueMicrotaskperformanceloadbalancingxmlminimalstreamsmovevalidatevalidationrouterES3Reflect.getPrototypeOfreducerInt8Arraydeepclonefast-deep-copyFunction.prototype.namegenericshigher-ordertoolkitistanbules2018trimreusewritableUnderscoreworkflowupBigUint64Arraysymlinkscall-boundfindLastIndexES2017classnameinternaldirasyncconsumejsdiffprivate dataajaxstyleguideaccessibilityutil.inspectserializeoptimistpreprocessorbuffernumberhashidle256fullvarsininternal slotWebSocketstypedarraybabelajvprotoshrinkwrapfeedendpointcircularfpserrorObject.assignrgbreact poseiteratejapaneseroutechromiumoffsettransportstreamwaapicloudformationES8atomhooksstyleArraygitignoredayjstoolsqueuetc39typeofproxygetoptworkerpnpm9guidES2020weakmappackage.jsonstartersyntaxerrorparentcreatetypedviewbundlingtypesafe.envsharedarraybufferECMAScript 6debuggercomparetermjson-schema-validatorec2identifiersObject.valuesvariablesjsautoscalingObject.getPrototypeOfpushlocationsimpledbArray.prototype.findLastprettyconfigurablermcall-bindcachedescriptorECMAScript 5storagegatewayexecfileponyfilltapeURLSearchParamsbddtestfastcopysomewhichcommanderamazondomUint8Arrayomituninstalltypanionprotocol-buffersyupconstargsArray.prototype.filterobjmanipulationaccessorbyteOffsetreadablestreamconcatMapnamestoobjectgetintrinsicStreamenumerableroutingpromisedeep-cloneconsoletakeimportfastes2017trimStartyamlredirectsafeflatMapparentsutildeepcopyeslintpluginapollojson-schemaeslintjson-schema-validationreduxglobalES7springpropsyntaxignoreTypeBoxeslint-pluginRxpostcss-plugindiffeventDispatcherdynamodbrandomrm -frformsvalidatorJSONchildastes2015textinferenceeventsES2015WebSocketpolyfillcurljsxECMAScript 2023String.prototype.matchAllzxregexnpmes2016ObjecttimetypesconfigRFC-6455shamcommandescapelockfileacornObservablesreact-hook-formcensormrufind-upfromreworkrestfulbyteLengthtrimRightlogcharacterjavascriptJSON-Schemal10nvarwalkingmkdirsarraysdroptestervisualFloat64Arrayproperty0deepnegativeprogressmonorepoutilsPushforklinkinstallerstringprototypepinomapreducewaitslicemulti-packageECMAScript 2022east-asian-widthmetadatacommand-linemkdirpthreefullwidthbundlerexeccollection.es6wgetReactiveXboundcode pointsObservablequeryelasticachecheckequalitykarmavpccodesstylingnegative zeroenvironmentsmatchesieweaksetrapidECMAScript 2021TypedArrayUint16ArrayAsyncIteratorttyObject.ispyyamlsharedfast-deep-clonePromisegetOwnPropertyDescriptorjshintlocalhandlerloggercoverageio-tslookextendcryptozodnpmignorewebmakecoreefficientArrayBufferebsspecString.prototype.trimsymbolsramdaclassesslotdragforEachutility_.extendES2018sortedCSSStyleDeclarationMicrosoftbinarieslengthcomputed-typeses-shimsfnmatchclireverseperformanthardlinksfindmanageres-shim APIfast-copyidlintindicatordependency managerelbfunctioncloneavasetPrototypeOfexpressionwalkrfc4122binaryprefixterminalSymbol.toStringTagreact animationbindfindLaststyled-componentsinstallpipeshebangcloudsearch3dfixed-widthwarningshimFloat32Arraybusyglobalscompilertddreversed
1.1.18

1 year ago

1.1.17

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago