JavaScript Algorithm: Find Difference Between Two Arrays
A function that will return an array with elements that are in the first array but not in the second.
Published in
2 min readFeb 17, 2021
We are going to write a function called mergeLeft
that will accept two arrays, arr1
and arr2
, as arguments.