2020-07-02 15:03:16 +10:00

10 lines
407 B
Plaintext

{
"name": "array_find",
"type": "function",
"groups": ["Arrays"],
"description": "Returns the index (0 for the first one) of a value within an array. Returns -1 if the value is not found.",
"arguments": [ {"arg":"array","description":"an array"},
{"arg":"value","description":"the value to search"}],
"examples": [ { "expression":"array_find(array(1,2,3),2)", "returns":"1"}]
}