You are viewing documentation for version v1.6.x. View latest version.
contains
determines whether a given list or set contains a given single value
as one of its elements.
contains(list, value)
contains(list, value)
> contains(["a", "b", "c"], "a")
true
> contains(["a", "b", "c"], "d")
false
> contains(["a", "b", "c"], "a")
true
> contains(["a", "b", "c"], "d")
false