TypeScript배열findIndex

findIndex배열

조건을 만족하는 첫 번째 요소의 인덱스를 반환합니다.

문법

array.findIndex(predicate): number