Deviopath › JavaScript

Array Difference

Easy · Arrays

Write a function difference that returns the items of a that do not appear anywhere in b.

Keep the order of a, and keep duplicates from a.

Next: Zip Two Arrays