The array in which to search for the target.
The target value to find within the array.
A comparison function that compares two elements.
Should return 0 if a
and b
are considered equal, a negative number if a < b
,
and a positive number if a > b
.
The index of the target in the array, or -1 if the target is not found.
Performs a linear search on the data array.
target
.