lbry-desktop/ui/util/object.js

4 lines
148 B
JavaScript
Raw Normal View History

2019-08-25 13:42:25 +02:00
export function isEmpty(object) {
return object in [null, undefined] || (object.constructor === Object && Object.entries(object).length === 0);
}