Returns a Stream that yields elements from the source that are Iterable and flattens them.
Type of items in the source.
Operation that yields elements from the source that are Iterable and flattens them.
const result = flat<number>()([[1, 2], [3, 4]]);console.log([...result]); // [1, 2, 3, 4] Copy
const result = flat<number>()([[1, 2], [3, 4]]);console.log([...result]); // [1, 2, 3, 4]
Returns a Stream that yields elements from the source that are Iterable and flattens them.