Version: v0.8.1 - Beta.  We welcome contributors & feedback.

List.containsAny

containsAny($otherList) -> boolean

Description

Returns true if the List contains one of the items in $otherList.

['a', 'b', 'c'].containsAny(['z', 'a'])
//= true

['a', 'b', 'c'].containsAny(['x', 'y', 'z'])
//= false

['a', 'b', 'b'].containsAny(['a', 'b'])
//= true

See Also