hexo/node_modules/ali-oss/lib/common/utils/isFile.ts

4 lines
98 B
TypeScript
Raw Normal View History

2023-10-03 11:14:36 +08:00
export const isFile = obj => {
return typeof File !== 'undefined' && obj instanceof File;
};