Is there a library function for taking two string arrays and detecting whether or not they intersect?
Ie:
// Given the following arrays
const a = [1,2,3,4];
const b = [3,4,5,6];
const c = [6,7,8,9];
// a intersects b, b intersects c, a does not intersect c
If not, I can write my own... but if it is standard, would prefer to use that 🙂