{"ScriptPreparationCode":"var array = [...Array(100000).keys()];\r\n\r\nfunction fastFilter(arrayToFilter, cb) {\r\n const stack = []\r\n\r\n for (let i = 0; i \u003C arrayToFilter.length; i \u002B= 1) {\r\n const item = arrayToFilter[i]\r\n\r\n if (cb(item, i)) {\r\n stack.push(item)\r\n }\r\n\r\n }\r\n\r\n return stack\r\n}","TestCases":[{"Name":"Array.prototype.filter","Code":"array.filter(n =\u003E n === 99999)","IsDeferred":false},{"Name":"for loop filter","Code":"fastFilter(array, n =\u003E n === 99999)","IsDeferred":false}]}