Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@filerobot/explorer / lib / components / UploadsPanel / UploadsList / UploadsList.utils.js
Size: Mime:
import isImage from '@filerobot/utils/lib/isImage';
import isSupportedVideo from '@filerobot/utils/lib/isSupportedVideo';
import isSvg from '@filerobot/utils/lib/isSvg';
export var hasImageOrVideoFile = function hasImageOrVideoFile(files) {
  var result = [false, false];
  files.forEach(function (file) {
    if (isImage(file) && !isSvg(file)) {
      result[0] = true;
    } else if (isSupportedVideo(file)) {
      result[1] = true;
    }
    if (result[0] && result[1]) {
      return result;
    }
  });
  return result;
};