countArray()function

countArray(arr: ImmutableArray<T>): number
ParamType
arrImmutableArray<T>
The array to count. required
Return
number
The number of items in arr.

Count the items in an array.

Examples

countArray([1, 2, 3]) // 3