[ { start_time: '1', end_time: '10' },
{ start_time: '3', end_time: '15' } ]
These object are multiple...
This is my time range array, if the first object has start_time 1 and end_time is 10 then the second object start_time, not between in 1 to 10.
I want the second object start_time greater than the first object end_time.
Expected output.
[ { start_time: '1', end_time: '10' },
{ start_time: '11', end_time: '15' } ]