List.containsAll
containsAll($otherList) -> boolean
Description
Returns true
if the List contains all of the items in $otherList
.
Only the unique values of each list are compared. Duplicate values are ignored.
['a', 'b', 'c'].containsAll(['b', 'c']) //= true ['a', 'b', 'c'].containsAll(['b', 'c', 'z']) //= false ['a', 'b', 'b'].containsAll(['a', 'b']) //= true