{"ScriptPreparationCode":null,"TestCases":[{"Name":"while loop","Code":"const keys = [\u0027a\u0027, \u0027b\u0027, \u0027c\u0027, \u0027d\u0027]\r\nconst vals = [\u00271\u0027, \u0027d\u0027]\r\nconst result = [...vals];\r\nwhile (result.length \u003C keys.length) {\r\n result.push(\u0027\u0027);\r\n}\r\n","IsDeferred":false},{"Name":"Array alloc","Code":"const keys = [\u0027a\u0027, \u0027b\u0027, \u0027c\u0027, \u0027d\u0027]\r\nconst vals = [\u00271\u0027, \u0027d\u0027]\r\nconst filler = Array(keys.length - vals.length).fill(\u0027\u0027);\r\n[...vals].concat(...filler);","IsDeferred":false}]}