arr1 = [1,2,3,4];
arr2 = [6,7,3,9];
arr1.forEach( itm1 => {
arr2.forEach( itm2 => {
if( itm1 === itm2 )
//i would want it to stop checking for the rest of the items in arr2
}
}
arr1 = [1,2,3,4];
arr2 = [6,7,3,9];
arr1.forEach( itm1 => {
arr2.forEach( itm2 => {
if( itm1 === itm2 )
//i would want it to stop checking for the rest of the items in arr2
}
}