{"ScriptPreparationCode":"// obj from https://dev.to/saritchaethudis/working-with-complex-objects-in-javascript-the-friendly-beginners-guide-clh\r\nvar obj1 = {\r\n artPieces: [{\r\n pieceName: \u0022Emo Flamingos\u0022,\r\n price: 30,\r\n ownerList: [{\r\n name: \u0022Fida Ernest\u0022,\r\n userID: 23849,\r\n purchaseDate: \u002209/13/2021\u0022,\r\n },\r\n {\r\n name: \u0022Eric Karger\u0022,\r\n userID: 23510,\r\n purchaseDate: \u002209/13/2021\u0022,\r\n },\r\n ],\r\n },\r\n {\r\n pieceName: \u0022Where is my bit wallet\u0022,\r\n price: 100,\r\n ownerList: [],\r\n },\r\n ],\r\n storeCredits: 1000,\r\n};\r\n\r\nvar obj2 = {\r\n name: \u0022Rose Daniel\u0022,\r\n userID: 23849,\r\n purchaseDate: \u002211/29/2021\u0022,\r\n};\r\n\r\nvar arr = [obj1, obj2, obj1, obj2, obj1, obj2, obj1, obj2, obj1, obj2, obj1, obj2, obj1, obj2, obj1, obj2, obj1, obj2];","TestCases":[{"Name":"spread shift and push","Code":"let result = [...arr];\r\nresult.shift();\r\nresult.push(obj1);","IsDeferred":false},{"Name":"slice spread and append","Code":"let result = [...arr.slice(1), obj1];","IsDeferred":false},{"Name":"slice and push","Code":"let result = arr.slice(1);\r\nresult.push(obj1);","IsDeferred":false}]}