{"ScriptPreparationCode":"var arr = [];\r\nfor (var i = 0; i \u003C 1000; i\u002B\u002B) {\r\n arr[i] = { i, extra: Math.random() \u003C 0.5 ? null : \u0027test\u0027 };\r\n}","TestCases":[{"Name":"forEach","Code":"var newArr = [];\r\narr.forEach((x) =\u003E {\r\n if (x.extra !== null) {\r\n newArr.push({\r\n ...x,\r\n extra: x.extra \u002B \u0027!\u0027\r\n });\r\n }\r\n});","IsDeferred":false},{"Name":"filter.map","Code":"var newArr = arr\r\n .filter((x) =\u003E x.extra !== null)\r\n .map((x) =\u003E ({\r\n ...x,\r\n extra: x.extra \u002B \u0027!\u0027\r\n }));\r\n","IsDeferred":false},{"Name":"map.filter","Code":"var newArr = arr\r\n .map((x) =\u003E ({\r\n ...x,\r\n extra: x.extra \u002B \u0027!\u0027\r\n }))\r\n .filter((x) =\u003E x.extra !== null)\r\n","IsDeferred":false}]}