Skip to content

isFile

Determine whether the input value is a File.

Usage

ts
import { isFile } from 'rattail'

isFile(new File(['Hello, world!'], 'hello.txt', { type: 'text/plain' }))
// return true

Arguments

ArgTypeDefaults
valueany

Return

Type
boolean