findEqual Method

Looks up an element comparing equal to the specified value using binary search.

findEqual(value: T): T | undefined

Parameter Type Description
value T The value to search for

Returns - T | undefined

the first equivalent element in the array, or undefined if no such element exists.

Defined in

Last Updated: 13 June, 2024