Skip to content

length

length(array)

Returns the number of elements in array.

ts
length([1, 2, 3, 4]); // 4
ts
pipe([1, 2, 3, 4], length()); // 4