UNPKG

es-toolkit

Version:

A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

11 lines (8 loc) 193 B
import { isBlob } from './isBlob.mjs'; function isFile(x) { if (typeof File === 'undefined') { return false; } return isBlob(x) && x instanceof File; } export { isFile };