title: Translating literal object into object's properties
body: <p>Given this object:</p>
  
  <pre><code>var myObject = {name: 'David', date: '11/13/2014'};
  </code></pre>
  
  <p>I want my constructor to set its object properties based on <em>myObject</em>:</p>
  
  <pre><code>function myClass(_object){
      // set given object's properties here
  }
  </code></pre>
  
  <p>I want to set the properties through a loop, so I wont have to set every property by hand - because the object will be dynamic.</p>
  
  <p>I'm looking for a cross-browser solution.</p>