How can I check to see if one array is contained in another and return the missing values? I have found ways to do this in this post but none account for repeating values in the arrays. For example, I am trying to do something like this:
getDiff([1, 2, 3], [1, 2, 3, 4]) --> []
getDiff([1, 2, 2, 3], [1, 2, 3, 4]) --> [2]
getDiff(["A", "B", "C"], ["B", "B", "A", "C"]) --> []
getDiff(["B", "B", "B"], [3, 2, 1]) --> ["B", "B", "B"]