1.1.5 • Published 11 days ago

@teamteanpm2024/assumenda-provident-molestiae v1.1.5

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

async-iter

A wrapper over JS iterator, which allows filter/map/etc with chaining.

Usage: Example:

    const sourceIter = (async function* () {
        for await (const item of [1, 2, 3, 4, 5]) {
            yield item;
        }
    })();

    const asyncIter = new AsyncIter(sourceIter);

    const iter =
        asyncIter
            .filter((item) => item % 2 === 0)
            .filter((item) => item > 2)
            .map((item) => item * 2)
            .map((item) => item + 1)
            .mapAsync(async (item) => item / 3)
    ;

    const result = [];
    for await (const item of iter) {
        result.push(item);
    }

    expect(result).to.deep.equal([3]);

see more details here in unit tests

languagelinewraptrimRightUint16Arrayexecec2packagescharacterseslintpluginPushhasOwnsignalsObject.getPrototypeOfprocessclassnamesamazonfigletiamgroupvalidationarraybufferjson-schema-validationstyled-componentsserializerencryptiondescriptorcallbackchanneltraverseroute53byteOffsetfetchthroatiteratorcloudformationfile systemECMAScript 2019objectmapenumerablehttpsbyteremovematchcloudwatchfast-copycheckpipemixinsvalidateless.jsinternalexitextendes2016call-bindoperating-systemidleautoprefixermakesharedloadingparserescapebuffersflagssafesetTypeScriptkoreanfindLastIndexhttpeslintconfigmergesuperagentbusyinstalljwtquerybindcomputed-types[[Prototype]]mimeconnectgetPrototypeOfWeakMapsanitizeES2015react-testing-librarysigtermstarterdomgroupBy@@toStringTag6to5windowscommandertimeString.prototype.matchAllimmerstylingpropertiesiscompile lessclass-validatorwaitweakmapaccessibilityserializationArray.prototype.flatMapsettingsjson-schemaerrorurltextassertsxsswriteES2017autoscalingclassesspecserializeassignObject.entrieschineseinputfunctionaleventDispatchertoStringTagrmdirInt32Arraynativevaluestypesaferapiddeep-copyairbnbframeworkMicrosoftwhichsyntaxerrorfullasyncviewwhatwgsharedarraybufferzodsymbolECMAScript 2021fast-deep-copyregularcsshookss3Int8Array-0ES7cloudsearchRxwatchFilewatchtypeofsyntaxYAMLfunctionthrottleprefixsnscensorqstermframerwafECMAScript 2023Function.prototype.namechromiumdefinePropertypostcssJSONsesdataViewarrayArrayBuffer#slicetranspilersidetypenpmbeanstalkreadstylesheetdiffclishrinkwrapemitpoint-freereuseartyupbootstrap lessregexptddcss nestingstablecss lessexit-codeharmonypromisesworkflowArrayTypeBoxcallbindlinkutilsRxJSprettymonorepogenericshigher-orderreadablesymlinklook-upoptiontslibcollection.es6debuggercolumnpreserve-symlinksECMAScript 6descriptorsiterationreal-timeECMAScript 2020gdprprotobufjsonschemaObjectcollectioneast-asian-widthspinnerWebSocketmiddlewareloggerwgetajaxebsregular expressionsfullwidthdescriptionfileparentskeysstyleguidelengthObject.assignomitECMAScript 2016Uint8ClampedArraySet$.extendenvironmentmatchAllsearchdebugwatchinglimitedindicatornameisConcatSpreadablesigintjsoncore-jsstatusshelljs0chaisymlinkssetImmediatecolorstsdatainterruptsString.prototype.trimbalancedjsdiffhandlersfunctionsexpressrfc4122consumesortedlibphonenumberecmascriptdom-testing-librarytapRegExp.prototype.flagsObject.keyscopykinesisloggingfromES5css-in-jsECMAScript 2015nodemodulesaccessorargsSymbolRegExp#flagsless compilerobjcontainsphoneECMAScript 3fseventsavapackageio-tslinuxpreprocessorsameValueZeroduplexMapjQuerycloudfrontreducercryptotypanioncharactersetPrototypeOfconsoleimmutablepromiseinferencehelpersproptouchreact poselruargvemojipasswordlastprotocol-buffersredux-toolkitawaitjestawsfastcopyponyfillreduceArray.prototype.findLastIndexforEachtestingthreestreamsReactiveXconcatMapoutputresolveeverybreakslotconcatsomereact animationtaskAsyncIteratorESnextstreams2formatES3schema__proto__transpilestylesmapreducesetterObservableses2017macosmatchesshamstructuredClonemake dirArray.prototype.includesdirectorypopmotionarraysbabel-corextermlimitauthsqsWebSockets
1.1.5

11 days ago

1.1.4

12 days ago

1.0.4

13 days ago

1.0.3

14 days ago

1.0.2

15 days ago

1.0.1

16 days ago

1.0.0

16 days ago