Deviopath › JavaScript

Intersection of Two Arrays

Medium · Arrays

Write a function intersection that returns the values that appear in both arrays.

Keep the order of the first array and include each value only once.

Next: Fibonacci