BigBinary Academy
JavaScript
Challenges Set 12
65.55
Search
Assessment
65.55
Find all common elements
The function
commonElements
should return the common elements.
If either one of the arrays is empty, return the non-empty array.
For example:
Previous
Next