{"ScriptPreparationCode":null,"TestCases":[{"Name":"Splice","Code":"var arr = new Array(15000);\r\narr.fill({ id: 0 });\r\narr = arr.map((arrVal,arrIDX) =\u003E ({id: Math.random() \u003C 0.5 ? arrIDX: null}));\r\nfor (var i = arr.length - 1; i \u003E= 0; i -= 1) {\r\n if (!arr[i].id) arr.splice(i, 1);\r\n}","IsDeferred":false},{"Name":"Filter","Code":"var arr = new Array(15000);\r\narr.fill({ id: 0 });\r\narr = arr.map((arrVal,arrIDX) =\u003E ({id: Math.random() \u003C 0.5 ? arrIDX: null}));\r\narr2 = arr.filter(elem =\u003E elem.id);","IsDeferred":false},{"Name":"Lodash Remove","Code":"var arr = new Array(15000);\r\narr.fill({ id: 0 });\r\narr = arr.map((arrVal,arrIDX) =\u003E ({id: Math.random() \u003C 0.5 ? arrIDX: null}));\r\n_.remove(arr, elem =\u003E !elem.id);","IsDeferred":false},{"Name":"Lodash Filter","Code":"var arr = new Array(15000);\r\narr.fill({ id: 0 });\r\narr = arr.map((arrVal,arrIDX) =\u003E ({id: Math.random() \u003C 0.5 ? arrIDX: null}));\r\narr2 = _.filter(arr, elem =\u003E elem.id);","IsDeferred":false}]}