Function: countOccurrences()
countOccurrences(
arr,val):number
Defined in: utils/utils.ts:183
A function to count the number of occurances of a give value within an array
Parameters
arr
(string | number)[]
the 1D array to search
val
the value we are seeking
string | number
Returns
number
number of occurances