$.grep jquery

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
originalArray = [15, 28, 123, 154]
var bigNumbers = $.grep(originalArray,function(value) {
return value > 100;
});
console.log(bigNumbers)
//with regurlar expressions
var badZips = $.grep(
originalArray,
function(value) {
return value.match(/^\d{5}(-\d{4})?$/) != null;
},
true);