{"ScriptPreparationCode":"const make = (length) =\u003E ({\r\n id: length,\r\n items: Array.from({ length }, () =\u003E make(length / 2))\r\n})\r\n\r\nconst data = make(20)","TestCases":[{"Name":"Map","Code":"const ids = Array.from(new Set(\r\n data.items.map(\r\n i =\u003E i.items.map(\r\n ii =\u003E ii.items\r\n )\r\n ).flat(2)\r\n .filter(item =\u003E item.id % 2 === 0)\r\n .map(item =\u003E item.id.toString())\r\n))","IsDeferred":false},{"Name":"Loop","Code":"const items = new Set()\r\n\r\nfor (const i of data.items)\r\nfor (const ii of i.items)\r\nfor (const item of ii.items)\r\n if (item.id % 2 === 0) items.add(item.id.toString())\r\n\r\nconst ids = Array.from(items)","IsDeferred":false}]}