// Index of an element within this collection
eles.indexOf(ele: Collection): numberIndex of an element within this collection.
| Name | Description |
|---|---|
ele: Collection | the element to find; only its first element is used |
Returns
numberthe index, or -1 when it is not in this collection