TypeScript配列findIndex
fill

findIndex配列

findLast

条件を満たす最初の要素のインデックスを返します。

構文

array.findIndex(predicate): number