Skip to content
Advertisement

How can I get the start time of the next appointment of a professional

I have a list of appointments with a start time, an end time and the practitioner’s id.

JavaScript

I have filtered the appointments that belong to that professional, but now what I want to do is to be able to get the end time of the first appointment and the start time of the next appointment for further processing.

JavaScript

Advertisement

Answer

forEach() has an index parameter you can use

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement