MCPcopy
hub / github.com/bbc/peaks.js / isValidTime

Function isValidTime

src/utils.js:168–170  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

166 */
167
168export function isValidTime(value) {
169 return (typeof value === 'number') && Number.isFinite(value);
170}
171
172/**
173 * Checks whether the given value is a valid object.

Callers 5

utils-spec.jsFile · 0.90
validatePointOptionsFunction · 0.90
validateSegmentOptionsFunction · 0.90
player.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected