{"ScriptPreparationCode":null,"TestCases":[{"Name":"Test1","Code":"const blocks = [1,2,3,4,5]\r\nconst remotes = [[1,2],[1,2],[2,3],[5],[5]]\r\nlet relatedBlocks = []\r\nremotes.forEach(ids =\u003E {\r\nids.forEach(blockId =\u003E ids.includes(blockId) || relatedBlocks.push(blockId)) })\r\n\r\nconsole.log(relatedBlocks)","IsDeferred":false},{"Name":"Test2","Code":"const blocks = [1,2,3,4,5]\r\nconst remotes = [[1,2],[1,2],[2,3],[5],[5]]\r\nlet relatedBlocks = new Set()\r\nremotes.forEach(ids =\u003E {\r\nids.forEach(blockId =\u003E relatedBlocks.add(blockId)) })\r\n\r\nconsole.log(...relatedBlocks)","IsDeferred":false}]}