Returns an OperationFunction that yields elements from the source that are Iterable and flattens them.
Type of items in the source.
An OperationFunction 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 an OperationFunction that yields elements from the source that are Iterable and flattens them.