overlaps
Version:
Simple utility that checks whether or not two arrays overlap. It is equivalent to intersection(arr1, arr2).length > 0, but is more performant.
9 lines (8 loc) • 219 B
JavaScript
Simple utility that checks whether or not two arrays overlap. It is equivalent to intersection(arr1, arr2).length > 0, but is more performant.