(delays, durations)
| 5900 | } |
| 5901 | |
| 5902 | function getTimeout (delays, durations) { |
| 5903 | /* istanbul ignore next */ |
| 5904 | while (delays.length < durations.length) { |
| 5905 | delays = delays.concat(delays); |
| 5906 | } |
| 5907 | |
| 5908 | return Math.max.apply(null, durations.map(function (d, i) { |
| 5909 | return toMs(d) + toMs(delays[i]) |
| 5910 | })) |
| 5911 | } |
| 5912 | |
| 5913 | function toMs (s) { |
| 5914 | return Number(s.slice(0, -1)) * 1000 |
no test coverage detected