Check if 2 arrays contain the same element

JS
S
JavaScript

Using some function filter iterator and includes

1const existsInBothSides = patches.some((r) => patchesIds.includes(r));

Created on 9/15/2020