SyntaxFix
Write A Post
Hire A Developer
Questions
var indices = []; var IDs = [0, 1, 2, 3, 4]; for(var i = 0, len = array.length; i < len; i++) { for(var j = 0; j < IDs.length; j++) { if(array[i].id == ID) indices.push(i); } }