dist/dovemax-sdk.esm.js
function (fileName, fileTypes) {
    var _fileNameStr = fileName.substring(fileName.lastIndexOf('.') + 1, fileName.length).toLowerCase();
    if (fileTypes.indexOf(_fileNameStr) > -1) { return true }
    return false
  }
function (fileName, fileTypes) {
    var _fileNameStr = fileName.substring(fileName.lastIndexOf('.') + 1, fileName.length).toLowerCase();
    if (fileTypes.indexOf(_fileNameStr) > -1) { return true }
    return false
  }
function ( fileName , fileTypes ) { var _fileNameStr = fileName . substring ( fileName . lastIndexOf ( '.' ) + 1 , fileName . length ) . toLowerCase ( ) ; if ( fileTypes . indexOf ( _fileNameStr ) > - 1 ) { return true } return false }
Check fileName's type in the fileTypes
@param fileName String
@param fileTypes Array []
@return Boolean {true, false}
Check fileName s type in the fileTypes