source:
node_modules/es-toolkit/dist/predicate/isFile.mjs
| Last change on this file was a762898, checked in by , 5 months ago | |
|---|---|
|
|
| File size: 193 bytes | |
| Line | |
|---|---|
| 1 | import { isBlob } from './isBlob.mjs'; |
| 2 | |
| 3 | function isFile(x) { |
| 4 | if (typeof File === 'undefined') { |
| 5 | return false; |
| 6 | } |
| 7 | return isBlob(x) && x instanceof File; |
| 8 | } |
| 9 | |
| 10 | export { isFile }; |
Note:
See TracBrowser
for help on using the repository browser.
