Remove undefined key Last updated: October 19, 2019 Object.keys(obj).forEach(key => obj[key] === undefined && delete obj[key])