Check if 2 arrays contain the same element
JS
S
JavaScriptUsing some function filter iterator and includes
1const existsInBothSides = patches.some((r) => patchesIds.includes(r));Created on 9/15/2020
Using some function filter iterator and includes
1const existsInBothSides = patches.some((r) => patchesIds.includes(r));Created on 9/15/2020