dtable-utils
Version:
dtable common utils
14 lines (11 loc) • 333 B
JavaScript
import _typeof from '@babel/runtime/helpers/typeof';
var isFileValue = function isFileValue(object) {
if (_typeof(object) !== 'object') {
return false;
}
var needKeys = ['name', 'size', 'url', 'type'];
return needKeys.every(function (key) {
return object[key] || object[key] === 0;
});
};
export { isFileValue };