Add MIME type module

This commit is contained in:
Daniel Gasienica
2018-02-13 08:24:27 -05:00
parent 37a726e4fb
commit 213400e4b2
2 changed files with 26 additions and 0 deletions

3
js/modules/types/mime.js Normal file
View File

@@ -0,0 +1,3 @@
exports.isJPEG = mimeType =>
mimeType === 'image/jpeg' ||
mimeType === 'image/jpg';