TypeScript配列flatMap
flat

flatMap配列

includes

各要素にmapを適用した後、1レベル平坦化します。

構文

array.flatMap(mapFn): T[]