Searches for the specified object and returns the 0-based index of the first occurrence within the entire LeadCollection.
LeadCollection.prototype.indexOf = function(
item
)
indexOf(
item: any
): number;
item
The object to locate. The value can be null.
The 0-based index of the first occurrence of item within the entire LeadCollection, if found; otherwise -1.
The LeadCollection is searched forward starting at the first item and ending at the last item.
This method determines equality using the default equality comparer.