es6 strip child is null from object code example
Example: es6 strip child is null from object
Object.keys(obj).forEach(k => (!obj[k] && obj[k] !== undefined) && delete obj[k]);
Object.keys(obj).forEach(k => (!obj[k] && obj[k] !== undefined) && delete obj[k]);