lbry-desktop/ui/util/object.js
2019-11-11 13:27:29 -05:00

3 lines
148 B
JavaScript

export function isEmpty(object) {
return object in [null, undefined] || (object.constructor === Object && Object.entries(object).length === 0);
}