MCPcopy Create free account
hub / github.com/TruthHun/BookStack / getTimeout

Function getTimeout

static/vuejs/vue.runtime.esm.js:5900–5909  ·  view source on GitHub ↗
(delays, durations)

Source from the content-addressed store, hash-verified

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

Callers 1

getTransitionInfoFunction · 0.70

Calls 1

toMsFunction · 0.70

Tested by

no test coverage detected