Underlying comparator.
Return the number of items in the array.
Return the exact (in terms of comparator) element that's in the array if present.
Note this API might look redundant on a first glance, but it really depends on the comparator. We might have a complex object inside the array, yet the comparator will consider two objects equal just by looking at the id. With this API we are able to retrieve the exact object that's stored.
Returns index of SOME (it's not guaranteed it's first or last) equal element or -1 if the element does not exist.
Return a regular array that's a copy of this one.
Optionalstart: numberOptionalend: number
Underlying array.