Counts the occurrences of a value in an array
count([1, 1, 2, 1, 2, 3]); // 6
count([1, 1, 2, 1, 2, 3], 1); // 3
Optional
Generated using TypeDoc
Counts the occurrences of a value in an array
Example
Example