pub fn is_in(value: &Value, other: &Value) -> bool
Available on crate feature
builtins
only.Expand description
Test version of in
.
{{ 1 is in [1, 2, 3] }} -> true
{{ [1, 2, 3]|select("in", [1, 2]) }} => [1, 2]
This is useful when combined with select
.