I have two objects:
obj1 [
'Anime',
'Movies/TV Series',
'Coding',
'Cooking',
'Sport/Fitness',
'Gaming'
]
and
obj 2 [
'Music',
'Movies/TV Series',
'Coding',
'Party/Night Clubs',
'Gaming',
'Traveling',
'Roleplay'
]
I need to count the number of common elements in arrays.
How can I do it in javascript
?
Thanks for help in advance!