For accessibility of the snippet, check out the URL
https://jsmates.com/blog/find-common-items-from-two-array-in-javascript
Read next

What is JSON? And why do you need it?
Rizwan Hasan -

Getting the user's location with JavaScript
Jonah Lawrence -

Step up your Regex game
blakewood84 -

Make Responsive Landing Page With Hamburger Toggle Sidebar using Html CSS & Javascript
Bilal M Rizwaan -
Discussion