{"ScriptPreparationCode":null,"TestCases":[{"Name":"Adding with Function.prototype.apply on the push method","Code":"var target_array = [];\r\nvar new_data = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20, \u0022Hello world\u0022, \u0022I\u0027m a string\u0022, {obj: \u0022Yes I am an object\u0022}];\r\ntarget_array.push.apply(target_array, new_data)","IsDeferred":false},{"Name":"Adding with spread","Code":"var target_array = [];\r\nvar new_data = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20, \u0022Hello world\u0022, \u0022I\u0027m a string\u0022, {obj: \u0022Yes I am an object\u0022}];\r\ntarget_array.push(...new_data)","IsDeferred":false},{"Name":"Adding with for loop","Code":"var target_array = [];\r\nvar new_data = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20, \u0022Hello world\u0022, \u0022I\u0027m a string\u0022, {obj: \u0022Yes I am an object\u0022}];\r\nfor(let i = 0; i \u003C new_data.length; i\u002B\u002B){target_array.push(new_data[i])}","IsDeferred":false},{"Name":"Adding with while loop","Code":"var target_array = [];\r\nvar new_data = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20, \u0022Hello world\u0022, \u0022I\u0027m a string\u0022, {obj: \u0022Yes I am an object\u0022}];\r\nwhile(new_data.length){target_array.push(new_data.pop())}","IsDeferred":false}]}