I would like to know if there is a native javascript code that does the same thing as this:
function f(array,value){ var n = 0; for(i = 0; i < arr
Another option is:
count = myArray.filter(x => x == searchValue).length;