{"ScriptPreparationCode":"/*your preparation JavaScript code goes here\r\nTo execute async code during the script preparation, wrap it as function globalMeasureThatScriptPrepareFunction, example:*/\r\nlet a = Array.from({\r\n length: 10000\r\n },\r\n (v, i) =\u003E ({\r\n name: i,\r\n station: Array.from({\r\n length: 20\r\n },\r\n (v2, i2) =\u003E i2)\r\n })\r\n)","TestCases":[{"Name":"flatmap","Code":"/*When writing async/deferred tests, use \u0060deferred.resolve()\u0060 to mark test as done*/\r\na.flatMap((l) =\u003E l.station.map(s=\u003E({line:l.name,station:s})))","IsDeferred":false},{"Name":"reduce","Code":"a.reduce((acc, curr) =\u003E {\r\n for (const s of curr.station) {\r\n acc.push({ line: curr.name, staion: s })\r\n }\r\n return acc;\r\n }, [])","IsDeferred":false}]}