mirror of https://github.com/jkjoy/sunpeiwen.git
4 lines
95 B
TypeScript
4 lines
95 B
TypeScript
|
export const isFile = obj => {
|
||
|
return typeof File !== 'undefined' && obj instanceof File;
|
||
|
};
|