{"ScriptPreparationCode":"var size = 15;","TestCases":[{"Name":"While Loop with declaration","Code":"const array = [];\r\narray.length = size;\r\n\r\nlet index = array.length;\r\n\r\nwhile (index-- \u003E 0) {\r\n\tconst temp = [];\r\n \ttemp.length = size;\r\n \tarray[index] = temp;\r\n}","IsDeferred":false},{"Name":"While Loop with Slice","Code":"const array = [];\r\narray.length = size;\r\n\r\nlet index = array.length;\r\n\r\nconst temp = [];\r\ntemp.length = size;\r\n\r\nwhile (index-- \u003E 0) array[index] = temp.slice(0);","IsDeferred":false},{"Name":"While Loop with Push and Slice","Code":"const array = [];\r\narray.length = size;\r\n\r\nlet index = array.length;\r\n\r\nconst temp = [];\r\ntemp.length = size;\r\n\r\nwhile (index-- \u003E 0) array.push(temp.slice(0));","IsDeferred":false},{"Name":"While Loop with Push","Code":"const array = [];\r\narray.length = size;\r\n\r\nlet index = size;\r\n\r\nwhile (index-- \u003E 0) {\r\n\tconst temp = [];\r\n \ttemp.length = size;\r\n \tarray.push(temp);\r\n}","IsDeferred":false},{"Name":"Array.from with map","Code":"const array = Array.from(Array(size), () =\u003E {\r\n const temp = [];\r\n temp.length = size;\r\n return temp;\r\n});","IsDeferred":false},{"Name":"Array.from with map and slice","Code":"const temp = [];\r\ntemp.length = size;\r\n\r\nconst array = Array.from(temp, () =\u003E temp.slice());","IsDeferred":false},{"Name":"While Loop with Slice and Internal Declaration","Code":"const array = [];\r\narray.length = size;\r\n\r\nlet index = array.length;\r\n\r\nwhile (index-- \u003E 0) {\r\n const temp = [];\r\n temp.length = size;\r\n array[index] = temp;\r\n}","IsDeferred":false}]}