{"ScriptPreparationCode":"var array_length = 30;","TestCases":[{"Name":"Original jobsity code","Code":"const results = [...Array(array_length \u002B 1).keys()].map(i =\u003E { number: i });\r\nresults.shift();","IsDeferred":false},{"Name":"Simplified","Code":"const results = [...Array(array_length).keys()].map(i =\u003E { number: i \u002B 1 });","IsDeferred":false},{"Name":"FOR loop","Code":"const results = [];\r\n\r\nfor (let number = 1; number \u003C= array_length; number\u002B\u002B) {\r\n\tresults.push({ number });\r\n}","IsDeferred":false},{"Name":"Creating the array with the desired numbers as initial values","Code":"const results= Array.from(\r\n { length: array_length },\r\n (elem, idx) =\u003E idx \u002B 1\r\n ).map(i =\u003E { number: i })","IsDeferred":false}]}