Array find() and findIndex()
The 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.