function isVideoFile(file) {
  if (file.type.slice(0, 5) === 'video') {
    return true
  }
  return false
}
// check if a file is a video
check if a file is a video
check if a file is a video
function isVideoFile(file) {
  if (file.type.slice(0, 5) === 'video') {
    return true
  }
  return false
}
function isVideoFile ( file ) { if ( file . type . slice ( 0 , 5 ) === 'video' ) { return true } return false }
check if a file is a video
check if a file is a video