title: javascript : trim all properties of an object
body: <p>Is there a way to trim all properties of an object? In other words, can I change that:</p>
  
  <pre><code>{a: ' a', b: 'b ', c: ' c '}
  </code></pre>
  
  <p>To this:</p>
  
  <pre><code>{a: 'a', b: 'b', c: 'c'}
  </code></pre>
  
  <p>It seems I can't map an object, so how can I apply a function to all properties an get the object back?</p>