array.indexof
Index of the first element equal to the value, or -1.
array.indexof(id: array<any>, value: element type) -> int
Parameters
idarray<any>: The array; na stops the script with a runtime error.valueelement type: a value of the array element type
Example
i = a.indexof(close)