find: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 13: | Line 13: | ||
'''Type of returned value:''' | '''Type of returned value:''' | ||
[[ | [[Number]] | ||
'''Compatibility:''' | '''Compatibility:''' |
mNo edit summary |
mNo edit summary |
||
Line 13: | Line 13: | ||
'''Type of returned value:''' | '''Type of returned value:''' | ||
[[ | [[Number]] | ||
'''Compatibility:''' | '''Compatibility:''' |
Operand types:
Type of returned value:
Compatibility:
Version 2.01 required.
Description:
Returns the position of the first array element that matches x, returns -1 if not found.
Example:
[0, 1, 2] find 1 , result is 1