UNPKG

es-toolkit

Version:

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

15 lines (10 loc) 295 B
'use strict'; Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); const isBlob = require('./isBlob.js'); function isFile(x) { if (typeof File === 'undefined') { return false; } return isBlob.isBlob(x) && x instanceof File; } exports.isFile = isFile;