ES6 Remova a propriedade vazia do objeto

Object.entries(obj).reduce((a,[k,v]) => (v == null ? a : (a[k]=v, a)), {})
Magnificent Moth