-
Notifications
You must be signed in to change notification settings - Fork 1
array_contains( array, value )
Hyomoto edited this page Oct 16, 2020
·
2 revisions
Jump To | Go Back |
Arguments | Methods | Variables |
---|
Returns the index of the first found instance of value
in array
. If it does not exist, returns -1
instead.
var _contains = array_contains( [ "eggs", "bread", "milk" ], "bread" );
show_debug_message( _contains );
Name | Type | Purpose |
---|---|---|
array | array |
none provided |
value | mixed |
none provided |
Devon Mullane 2020