```
user = {
  firstName: 'Nick',
  age: 35
  location: {
    country: 'USA',
    city: 'NYC',
  },
}

```

I am often running in this scenario: 

I have a mutation/reducer which needs to set several props at their default values. I would like to not have to explicitly unset / reset them one by one. (for example: a user logout: `user.firstName = ''`, etc).

What's the most efficient, safe and performant way to remove each of those values (and set to null or empty string) without knowing the structure of the object? Any lodash or other libraries with a method for that use?

I am basically thinking of a recursive solution using `for...in`

```
for (prop in user) {
  console.log(prop);
}

```

or `Object.keys`, or keeping a default object that can replace the previous one.

Desired result

```
user = {
  firstName: '',
  age: null,
  location: {
    country: '',
    city: '',
  },
}

```