I am using indexOf
to search for a string in an array, how can I continue to count the number of occurences? I tried the latter but it isn't working.
var feed= new Array();
var feed= ["testABC", "test", "testABC"];
if (feed.indexOf("testABC") != -1) {
for (var i=0; i < feed.indexOf("testABC").length; i++ ) {
logInfo("found"+feed++);
}
}