{"ScriptPreparationCode":" var array = [];\r\n for (var idx = 0; idx \u003C 1000; idx\u002B\u002B) {\r\n array[idx] = idx;\r\n }\r\n \r\n function oddNum(item) {\r\n return item % 2;\r\n }\r\n \r\n // Create a new array and push to it\r\n Array.prototype.pushFilter = function(condition) {\r\n // Create a new array and push to it\r\n var result = [];\r\n for(var i = 0, len = this.length; i \u003C len; i\u002B\u002B) {\r\n if (condition(this[i], i, this)) \r\n result.push(this[i]);\r\n }\r\n return result;\r\n };\r\n ","TestCases":[{"Name":"filter","Code":"var result = array.filter(oddNum);","IsDeferred":false},{"Name":"push","Code":"var result = array.pushFilter(oddNum);","IsDeferred":false}]}