{"ScriptPreparationCode":"var randomArray=Array.from({length: 1000}, () =\u003E Math.floor(Math.random() * 100));\r\n","TestCases":[{"Name":"Splice ","Code":"for (let i = randomArray.length - 1; i \u003E= 0; --i) {\r\n if (randomArray[i] != 1) {\r\n continue;\r\n }\r\n randomArray.splice(i, 1);\r\n}\r\nreturn randomArray;","IsDeferred":false},{"Name":"Copy to new ","Code":"var newArray = [];\r\nfor (let i = randomArray.length - 1; i \u003E= 0; --i) {\r\n if (randomArray[i] == 1) {\r\n continue;\r\n }\r\n newArray.push(randomArray[i]);\r\n}\r\nreturn newArray;","IsDeferred":false}]}