Skip to main content

contains Function

contains determines whether a given list or set contains a given single value as one of its elements.

Code Block
contains(list, value)

Examples

Code Block
> contains(["a", "b", "c"], "a")
true
> contains(["a", "b", "c"], "d")
false