title: How do I prevent the creation of pointers when I copy a property in coffeescript?
body: <p>In coffeescript, if I do something like </p>
  
  <pre><code>foo = {}
  foo.prop = bar.prop
  </code></pre>
  
  <p>what happens is that if I manipulate <code>foo.prop</code> afterwards, <code>bar.prop</code> will also change (ie: js is not copying the object, but just creating a pointer to it).</p>
  
  <p>How do I prevent this behavior from happening? Is cycling trough the object and copying field by field the only solution?</p>
  
  <p>Thanks!</p>