find filter id from array javascript code example Example: javascript array filter var newArray = array.filter(function(item) { return condition; });