function create(ctor) {
    var args = [];
    for (var _i = 1; _i < arguments.length; _i++) {
        args[_i - 1] = arguments[_i];
    }
    var obj = Object.create(ctor.prototype);
    ctor.apply(obj, args);
    return obj;
}
/**
 * Creates a new object of the provided class and will call the constructor with
 * any additional argument supplied.
 */
Creates a new object of the provided class and will call the constructor with
any additional argument supplied.
Creates a new object of the provided class and will call the constructor with any additional argument supplied .
function create(ctor) {
    var args = [];
    for (var _i = 1; _i < arguments.length; _i++) {
        args[_i - 1] = arguments[_i];
    }
    var obj = Object.create(ctor.prototype);
    ctor.apply(obj, args);
    return obj;
}
function create ( ctor ) { var args = [ ] ; for ( var _i = 1 ; _i < arguments . length ; _i ++ ) { args [ _i - 1 ] = arguments [ _i ] ; } var obj = Object . create ( ctor . prototype ) ; ctor . apply ( obj , args ) ; return obj ; }
Creates a new object of the provided class and will call the constructor with
 any additional argument supplied.
Creates a new object of the provided class and will call the constructor with any additional argument supplied .