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