Snippets » JavaScript » Array intersection
To find elements of arrays that contain all elements of a target:
arrays.filter(i => target.every(j => i.includes(j)))
To find elements of arrays that contain all elements of a target:
arrays.filter(i => target.every(j => i.includes(j)))