4.0.0 • Published 7 years ago

starry.flatten v4.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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>