SyntaxFix
Write A Post
Hire A Developer
Questions
Use:
myarray.index "valuetoFind"
That will return you the index of the element you want or nil if your array doesn't contain the value.