How to use:
- Pass the callable two lists to compare
- Choose how you want to compare them:
- Simple comparison = items must exactly match
- Comparison by key = the items must be objects, but use a common key (e.g., ID) to compare with
- Choose how you wish to return the results for the shared items (for comparison by key only):
- Merge the objects = Merges the distinct properties from each object into a new object
- List one values only = Returns the object structure from the items in the first list
- List two values only = Returns the object structure from the items in the second list Returns:
- sharedItems - The items shared between the lists
- exclusiveItems - an object containing the items that are exclusive to each list
- listOne - The items exclusive to the first list
- listTwo - The items exclusive to the second list