countArray()function
countArray(arr: ImmutableArray<T>): number
| Param | Type | |
|---|---|---|
arr | ImmutableArray<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