{"ScriptPreparationCode":"data = [...Array(1000).keys()]","TestCases":[{"Name":"Passing array directly to second function","Code":"function first(...data){\r\n const res = data.map((n)=\u003E parseInt(n))\r\n return second(res)\r\n}\r\n\r\nfunction second(data){\r\n const reducer = (acc, n)=\u003E acc \u002B n\r\n return data.reduce(reducer, 0)\r\n}\r\n\r\nfirst(...data)","IsDeferred":false},{"Name":"Spreading array an extra time","Code":"function first(...data){\r\n const res = data.map((n)=\u003E parseInt(n))\r\n return second(...res)\r\n}\r\n\r\nfunction second(...data){\r\n const reducer = (acc, n)=\u003E acc \u002B n\r\n return data.reduce(reducer, 0)\r\n}\r\n\r\nfirst(...data)","IsDeferred":false}]}