export default function UndefinedToNull(obj) { Object.keys(obj).forEach((key) => { if (obj[key] === undefined) obj[key] = null; }); return obj; }