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

Function getTimeout

static/vuejs/vue.js:6344–6353  ·  view source on GitHub ↗
(delays, durations)

Source from the content-addressed store, hash-verified

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

Callers 1

getTransitionInfoFunction · 0.70

Calls 1

toMsFunction · 0.70

Tested by

no test coverage detected