Contains
System · system operation · implicitly imported
Checks whether an array contains an element.
Parameters
Array<ObjectType> array— The array to search in.ObjectType? element— The element to search for.
Returns
Bool — true if element is in array.
Errors
A runtime type error if element is not compatible with the element type of array, or array is not an Array.