fx-flow v0.7.0 / pipe/strict / size
Function: size()
size<
A
>(iterable
):IterableReturnValue
<A
,number
>
Returns size of iterable/asyncIterable
Type parameters
• A extends UniversalIterable
Parameters
• iterable: A
Returns
IterableReturnValue
<A
, number
>
Example
typescript
console.log(size([1, 2, 3])) // 3