source: node_modules/es-toolkit/dist/predicate/isFile.mjs

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 193 bytes
Line 
1import { isBlob } from './isBlob.mjs';
2
3function isFile(x) {
4 if (typeof File === 'undefined') {
5 return false;
6 }
7 return isBlob(x) && x instanceof File;
8}
9
10export { isFile };
Note: See TracBrowser for help on using the repository browser.