Write a function named findFreeCalendarSpots
that receives 1 parameter:
name
- a stringstartTime
- an Object with hours
and minutes
, both numbersduration
- a number representing minutesThe function should return a list of all the intervals during working hours (9:00 - 17:00) in which we have no meetings.
Those should be sorted ascending by start time, and have the same structure as meeting
except the name
property.
meetings
=