• check if the given file is a text file

    Parameters

    • fileName: string

      file name or path

    • OptionalfileType: string

      optional, fileType MIME type of the file

    Returns boolean

    true if text file, false otherwise