collections.In
Reports whether a value exists within the given slice or string.
Syntax
collections.In SLICE|STRING VALUE
Returns
bool
Alias
in
{{ $s := slice "a" "b" "c" }}
{{ in $s "b" }} → true{{ $s := "abc" }}
{{ in $s "b" }} → true