How can I count the array depending on the value..
I have an array with this value..
var myArr = new Array(3);
myArr[0] = "a";
myArr[1] = "a";
myArr[2] = "b";
I need to count the array depending on the value
Array with Value A is 2
Array with value B is 1
Thanks!
If you’re interested in a built-in function… you could always add your own.
Then you could use it like this.