var pickUndefined = function pickUndefined(obj) { var newObj = {}; Object.keys(obj).forEach(function (key) { if (obj[key] !== undefined) { newObj[key] = obj[key]; } }); return newObj; }; export default pickUndefined;