Say I have a simple Javascript object:
var Thing = function (data) {
this.data = data;
}
Would there be a shorter way of doing something like the following?:
var makeThing = function(data) { return new Thing(data); };
var things = $.map(array, makeThing);
jQuery; the OP is invoking jQuery.map.$alias!