starry.flatten
v4.0.0
Published
Member of the starry suite—modular functions for iterable objects.
Downloads
9
Maintainers
Readme
Member of the starry suite—modular functions for iterable objects.
Status
Applies to the whole suite.
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>