Overview: As part of implementing a client use-case, I have a requirement to fetch intersection meeting times for a group of participants. The application is leveraging Graph API to fetch timings for individual participants(screenshot below).
Issue: When fetching meeting times for multiple participants, the intersection time-slots are received as duplicates. Example: The data-flow to fetch intersection time-slot availability returns ‘n’ duplicate time-slot(in an array) for ‘n’ participants. Screenshot below displaying duplicate time-slots.
Question: Can we transform the resultant array(whose elements are unknown time-slots) to display the count of each elements in the array(instead of duplicates)?