Function
maxDuration
(results: ReadonlyArray<Duration.Duration | undefined>)
Source from the content-addressed store, hash-verified
| 650 | )) |
| 651 | |
| 652 | const maxDuration = (results: ReadonlyArray<Duration.Duration | undefined>): Duration.Duration | undefined => { |
| 653 | let max = results[0] |
| 654 | for (let i = 1; i < results.length; i++) { |
| 655 | max = results[i] && max && Duration.max(max, results[i]!) |
| 656 | if (max === undefined) break |
| 657 | } |
| 658 | |
| 659 | return max |
| 660 | } |
| 661 | |
| 662 | /** |
| 663 | * Returns a new `Schedule` that recurs on the specified `Cron` schedule and |
Tested by
no test coverage detected