Let's say I have the following 2 strings that were returned from JSON.stringify
:
list1 = ["mike","bob", "jim", "steve", "ed"]
list2 = ["bob", "jim", "steve"]
and I want to do something like this:
Diff(list1, list2)
and return this:
mike, ed
because mike and ed are what's different between the lists. Does anyone have something laying around that will do this simply and accurately? I'd like to avoid recreating the wheel if possible.