{"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 Array.from","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] = Array.from(temp);","IsDeferred":false},{"Name":"While Loop with Push and Array.From","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(Array.from(temp));","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}]}