showing results for - "es6 remove empty property from object"
Fabian
23 Mar 2019
1Object.entries(obj).reduce((a,[k,v]) => (v == null ? a : (a[k]=v, a)), {})
2