title: Looping through an object and changing all values
body: <p>I'm having trouble looping through an object and changing all the values to something else, let's say I want to change all the values to the string "redacted". I need to be able to do this in pure JavaScript.</p>
  
  <p>For example I'd have an object like this...</p>
  
  <pre><code>spy = {
  id: 007,
  name: "James Bond",
  age: 31
  };
  </code></pre>
  
  <p>and the object would look like this after...</p>
  
  <pre><code>spy = {
  id: "redacted",
  name: "redacted",
  age: "redacted"
  };
  </code></pre>
  
  <p>Here is what I have to start with</p>
  
  <pre><code>var superSecret = function(spy){
    // Code Here
  }
  </code></pre>
  
  <p>This shouldn't create a new spy object but update it. </p>