source: imaps-frontend/node_modules/react-use/esm/misc/parseTimeRanges.js@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 246 bytes
Line 
1export default function parseTimeRanges(ranges) {
2 var result = [];
3 for (var i = 0; i < ranges.length; i++) {
4 result.push({
5 start: ranges.start(i),
6 end: ranges.end(i),
7 });
8 }
9 return result;
10}
Note: See TracBrowser for help on using the repository browser.