{"ScriptPreparationCode":"var arr1 = [1,32,4,34,5,6,7,34,5,6];\r\nvar arr2 = [5,232,545,56,223,5,1,6,30];","TestCases":[{"Name":"spread","Code":"var resultSpread = [...arr1, ...arr2];","IsDeferred":false},{"Name":"push","Code":"for (let index = 0; index \u003C arr2.length; index\u002B\u002B) {\r\n const element = arr2[index];\r\n arr1.push(element);\r\n}","IsDeferred":false},{"Name":"ifPush","Code":"for (let index = 0; index \u003C arr2.length; index\u002B\u002B) {\r\n const element = arr2[index];\r\n if (arr1.findIndex((item) =\u003E item === element) \u003C 0) {\r\n arr1.push(element);\r\n }\r\n}","IsDeferred":false},{"Name":"ifSpread","Code":"for (let index = 0; index \u003C arr2.length; index\u002B\u002B) {\r\n const element = arr2[index];\r\n if (arr1.findIndex((item) =\u003E item === element) \u003C 0) {\r\n arr1 = [...arr1, element];\r\n }\r\n}","IsDeferred":false}]}