TypeScript配列includes
flatMap

includes配列

some

配列に指定した値が含まれているか確認します。

構文

array.includes(value, fromIndex?): boolean