Determines if a list or tuple has a given value.
This function does not generate a change.
array.has(value)
Argument | Type | Description |
---|---|---|
value | any (required) | Value to check. |
Returns true
if the given value is found in the list and otherwise false
.
This code shows an example use case of has():
months = ["January", "February", "March", "April"];
[
months.has("March"),
months.has("May")
];
Return value in JSON format
[
true,
false
]