title: Best way to reset all values in an Javascript object
body: <p>My javascript object looks something like:</p>
  
  <pre><code>$scope.display = {
    current: {
         key1: 'value1',
         key2: ['a', 'b'],
         key3: 'value2'
      }
  }
  </code></pre>
  
  <p>Upon some events in my code, I would like to reset these values to undefined like below:</p>
  
  <pre><code>$scope.display = {
    current: {
         key1: undefined,
         key2: [],
         key3: undefined
      }
  }
  </code></pre>
  
  <p>I use libraries like lodash, however i don't see any function that would perform this.
  I know how to do this manually, but I was wondering if there is a "Best practices" way of performing this task.</p>