KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Just wondering is there the same method for an Array object similar to indexOf in JavaScript? For example: arr = %w{'a', 'b', 'c'} c = 'c' if (arr.indexOf(c) != -1) // do some stuff else // don't do some stuff
Tags (comma-separated)
Save Edits
Cancel