const arr1 = ["605116", "703771", "726664", "612706", "475557", "521034", "547016"];
const arr2 = ["605116", "703771"];
arr1.map(item1 => arr2.map(item2 => (item1===item2) ? console.log(item1) : null))
result :
605116 703771
what is the condition to return the items that don't match?
expected results:
"726664", "612706", "475557", "521034", "547016"
need to be jsx compatible