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

Function getTimeout

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

Source from the content-addressed store, hash-verified

6346}
6347
6348function getTimeout (delays, durations) {
6349 /* istanbul ignore next */
6350 while (delays.length < durations.length) {
6351 delays = delays.concat(delays);
6352 }
6353
6354 return Math.max.apply(null, durations.map(function (d, i) {
6355 return toMs(d) + toMs(delays[i])
6356 }))
6357}
6358
6359function toMs (s) {
6360 return Number(s.slice(0, -1)) * 1000

Callers 1

getTransitionInfoFunction · 0.70

Calls 1

toMsFunction · 0.70

Tested by

no test coverage detected