source/res/functions.js
function create(type, def, base) {
    // empty constructor
    type.prototype = base ? typeof base === 'function' ? new base() : base : new Class(); // set base object as prototype
    return apply(new type(), def); // return empty object with right [[Prototype]]
}
function create(type, def, base) {
    // empty constructor
    type.prototype = base ? typeof base === 'function' ? new base() : base : new Class(); // set base object as prototype
    return apply(new type(), def); // return empty object with right [[Prototype]]
}
function create ( type , def , base ) { // empty constructor type . prototype = base ? typeof base === 'function' ? new base ( ) : base : new Class ( ) ; // set base object as prototype return apply ( new type ( ) , def ) ; // return empty object with right [[Prototype]] }
Instantiate a specific function, applies values definition properties and assign a proto object.
@param type {Function}
Instantiate a specific function applies values definition properties and assign a proto object .