
// Filter array values that are not present in array b let a = [1,2,3,5]; let b = [2,1,4,3]; let c = a.filter(item => !b.includes(item)); console.log(c); Output: [ 5 ] Execute above code here
Full stack developer
Full stack developer (ReactJS, NodeJS, JavaScript, PHP, SQL)
Markdown supported · ⌘↵ to post
No responses yet.