Given two arrays, returns true if any elements intersect
const oceanFish = ['tuna', 'tarpon']const lakeFish = ['bass', 'trout']intersects(oceanFish, lakeFish) // => falseconst brackishFish = ['tarpon', 'snook']intersects(oceanFish, brackishFish) // => true Copy
const oceanFish = ['tuna', 'tarpon']const lakeFish = ['bass', 'trout']intersects(oceanFish, lakeFish) // => falseconst brackishFish = ['tarpon', 'snook']intersects(oceanFish, brackishFish) // => true
Optional
Description
Given two arrays, returns true if any elements intersect
Example