title: Object constructor as function in Javascript
body: <p>Say I have a simple Javascript object:</p>
  
  <pre><code>var Thing = function (data) {
      this.data = data;
  }
  </code></pre>
  
  <p>Would there be a shorter way of doing something like the following?:</p>
  
  <pre><code>var makeThing = function(data) { return new Thing(data); };
  var things = $.map(array, makeThing);
  </code></pre>