{"ScriptPreparationCode":null,"TestCases":[{"Name":"shift","Code":"arr1.push(Date.now());\r\n\r\nif (arr1.length \u003E 5) arr1.shift();","IsDeferred":false},{"Name":"manual","Code":"const newEntry = Date.now();\r\n\r\nif (arr2.length \u003C 5) {\r\n arr2.push(newEntry);\r\n} else {\r\n for (let i = 1; i \u003C 5; i\u002B\u002B) {\r\n arr2[i - 1] = arr2[i];\r\n }\r\n\r\n arr2[4] = newEntry;\r\n}","IsDeferred":false},{"Name":"splice","Code":"const newEntry = Date.now();\r\n\r\nif (arr3.length \u003E= 5) arr3.splice(0, 1);\r\n\r\narr3 = [...arr3, newEntry];","IsDeferred":false}]}