{"ScriptPreparationCode":"var list = [];\r\nfor (let i = 0; i \u003C 10000; i\u002B\u002B) {\r\n list.push(i);\r\n}\r\n","TestCases":[{"Name":"splice (non-mutating)","Code":"for(let i = 0; i \u003C 5000; i\u002B\u002B) {\r\n const result = Array.from(list);\r\n const [removed] = result.splice(9000, 1);\r\n result.splice(i, 0, removed);\r\n list = result;\r\n}","IsDeferred":false},{"Name":"spread","Code":"for(let i = 0; i \u003C 5000; i\u002B\u002B) {\r\n list = [list[9000], ...list.slice(0, 9000), ...list.slice(9001)];\r\n}","IsDeferred":false},{"Name":"concat","Code":"for(let i = 0; i \u003C 5000; i\u002B\u002B) {\r\n list = [list[9000]].concat(list.slice(0,9000)).concat(list.slice(9001));\r\n}","IsDeferred":false}]}