starry.flatten

4.0.0 • Public • Published

Member of the starry suite—modular functions for iterable objects.

npm node

Status

Applies to the whole suite.

Build Status Coverage Status

Usage

function flatten<T = any>(
  iterable: Iterable<Iterable<T>> = []
  ): Iterable<T>

Returns an iterable that iterates through the input flattened a single level.

Parameters:

  • iterable: Iterable<Iterable<T>>

Returns: Iterable<T>

/starry.flatten/

    Package Sidebar

    Install

    npm i starry.flatten

    Weekly Downloads

    3

    Version

    4.0.0

    License

    MIT

    Unpacked Size

    4.28 kB

    Total Files

    9

    Last publish

    Collaborators

    • seangenabe