❀Novice Prime Minister

    @vangware/iterables
    TypeScript icon, indicating that this package has built-in type declarations

    2.1.4Β β€’Β PublicΒ β€’Β Published

    Vangware's Iterables logo

    Build Status Coverage License NPM Version Open Issues

    πŸ” Iterable and AsyncIterable utils.

    Usage

    This package can be installed as a dependency or used directly.

    Usage as ECMAScript module

    πŸ¦• In JS or deno:

    import { map } from "https://esm.sh/@vangware/iterables";
    
    const mapDouble = map((value: number) => value * 2);
    
    [...mapDouble([1, 2, 3])]; // [2, 4, 6]

    🌎 Or in the browser:

    <script type="module">
    	import { map } from "https://esm.sh/@vangware/iterables";
    
    	const mapDouble = map((value: number) => value * 2);
    
    	[...mapDouble([1, 2, 3])]; // [2, 4, 6]
    </script>

    Usage with local installation

    First:

    npm i @vangware/iterables

    And then:

    import { map } from "@vangware/iterables";
    
    const mapDouble = map((value: number) => value * 2);
    
    [...mapDouble([1, 2, 3])]; // [2, 4, 6]

    Documentation

    Documentation can be found HERE. It is auto-generated with typedoc based on the JSDocs and the types in the source. Shouldn't be necessary to read this, code editors like VS Code integrate the documentation in the UI.

    Changelog

    Changelog can be found HERE.

    Test coverage

    Test coverage can be found HERE.

    Install

    npm i @vangware/iterables

    DownloadsWeekly Downloads

    259

    Version

    2.1.4

    License

    MIT

    Unpacked Size

    62.4 kB

    Total Files

    75

    Last publish

    Collaborators

    • lukeshiru