JSFiddle - React, Tailwind, and code Playground

by amrendra kumar

JavaScript

const arr = ["5df9d2255235b95eb2a7e1f5", "5df9d2485235b95eb2a7e1f8"]

const arr2 = ["5df9d2255235b95eb2a7e1f5", "5df9d2485235b95eb2a7e1f8", 5df9d2485235b95eb2a7e1f8']


const res = arr.filter(a => {
	console.log('a', a)
 const found =  arr2.find(arr2Item => arr2Item !== a )
 console.log('found', found)
 return found
})

console.log(res)