How to filter an array/object by checking multiple values
You can use .filter() method of the Array object: http://jsfiddle.net/6RBnB/ Some old browsers like IE8 doesn’t support .filter() method of the Array object, if you are using jQuery you can use .filter() method of jQuery object. jQuery version: