function searchPositions(arr, searchKey) { return arr.filter(function(obj) { for (var key in obj) if (obj.hasOwnProperty(key) && obj[key].indexOf(searchKey) != -1) return true; return false }) };