Skip to content

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

More examples

Source

packages/core/src/pipe/strict/size.ts:27

Released under the MIT License.