source:
imaps-frontend/node_modules/react-use/esm/misc/parseTimeRanges.js
Last change on this file was d565449, checked in by , 4 weeks ago | |
---|---|
|
|
File size: 246 bytes |
Rev | Line | |
---|---|---|
[d565449] | 1 | export 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.