Array find() and findIndex()
Widely availableThe find()
and findIndex()
methods of arrays and typed arrays search an array for the first item that satisfies a test function.
The find()
and findIndex()
methods of arrays and typed arrays search an array for the first item that satisfies a test function.