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

4 lines
98 B
TypeScript

export const isFile = obj => {
return typeof File !== 'undefined' && obj instanceof File;
};