如果 this 包含至少一个在 other 中的元素,则返回 true。
this
other
true
举例:
[1, 2, 3].containsAny([5, 2]); // true [1, 2, 3].containsAny([4, 5, 6]); // false
bool containsAny(Iterable<E> other) => any(other.contains);