call-workflow
script

Venn list compare: Compare two arrays of objects and return shared and exclusive items

universalBeginner

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:
  1. sharedItems - The items shared between the lists
  2. exclusiveItems - an object containing the items that are exclusive to each list
  3. listOne - The items exclusive to the first list
  4. listTwo - The items exclusive to the second list