You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
main
${ noResults }
13 lines
249 B
TypeScript
13 lines
249 B
TypeScript
import { exists } from './misc.js'
|
|||
|
|||
function isVideoTimeValid (value: number, videoDuration?: number) {
|
|||
if (value < 0) return false
|
|||
if (exists(videoDuration) && value > videoDuration) return false
|
|||
|
|||
return true
|
|||
}
|
|||
|
|||
export {
|
|||
isVideoTimeValid
|
|||
}
|