I have an array in the following format:
var markers = [
[\'Title\', 15.102253, 38.0505243, \'Description\', 1],
[\'Another Title\', 15.102253, 38.05052
Couldn't you just use a nested loop here?
var filteredMarkers = [];
for(var i = 0; i < markers.length; i++) {
for(var j = 0; j < queryStringArray.length; j++) {
// this might need to be changed as your markers has index 4 as a number whereas the queryString array appears to be strings.
if(markers[i][4] === queryStringArray[j]) {
filteredMarkers.push(markers[i]);
break;
}
}
}