Using some function filter iterator and includes
1const existsInBothSides = patches.some((r) => patchesIds.includes(r));
Created on 9/15/2020