Function rocket_dyn_templates::minijinja::tests::is_in

source ·
pub fn is_in(value: &Value, other: &Value) -> bool
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.