Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "date":"2018-04-01",
- "time":[{"10:00":"12"},{"12:00":"25"}]
- },
- {
- "date":"2018-04-02",
- "time":[{"10:00":"12"},{"12:00":"25"}]
- },
- {
- "date":"2018-04-03",
- "time":[{"10:00":"12"},{"12:00":"25"}]
- }
- ]
- var slots = req.body.availableSlots;
- var count = slots.length;
- for(var i=0;i<count;i++){
- console.log(slots[i]);
- console.log(slots[i].date);
- }
Add Comment
Please, Sign In to add comment