{"ScriptPreparationCode":"var numbers = [10, 40, 230, 15, 18, 51, 1221, 24, 36, 28, 10, 6, 8, 7, 55, 89, 256, 102, 1, 23, 41, 38, 7, 2, 5, 9, 60]\r\nvar input = []\r\nArray(1000).fill().forEach(_ =\u003E input.push(...numbers))","TestCases":[{"Name":"native built-in filter","Code":"input.filter(i =\u003E i \u003E 10).map(x =\u003E x * x)","IsDeferred":false},{"Name":"native logic for filter, map","Code":"let result = []\r\nfor (let x in input) {\r\n if (x \u003E 10) result.push(x * x)\r\n}","IsDeferred":false},{"Name":"using forEach","Code":"let result = []\r\ninput.forEach(x =\u003E {\r\n if (x \u003E 10) result.push(x * x)\r\n})","IsDeferred":false},{"Name":"lodash chain","Code":"_.chain(input).filter(x =\u003E x \u003E 10).map(x =\u003E x * x).value()","IsDeferred":false},{"Name":"lodash not chain","Code":"_.map(_.filter(input, x =\u003E x \u003E 10), x =\u003E x * x)","IsDeferred":false},{"Name":"\bnative length refer","Code":"let result = []\r\nlet length = input.length\r\nfor (let i = 0; i \u003C length; \u002B\u002Bi) {\r\n let x = input[i]\r\n if (x \u003E 10) result.push(x * x)\r\n}","IsDeferred":false}]}