Berserk Docs
Scalar FunctionsDynamic / JSON Functions

array_index_of

Return the zero-based index of the first occurrence of `lookup` in

Syntax

array_index_of(array, lookup, start_index)

Parameters

Prop

Type

Returns: long

Examples

Example 1

print array_index_of(dynamic([1, 2, 3, 2]), 2)
print_0 (long)
1

On this page