jahcode.js
function(object) {
        if (object === null || object === void 0)
            return object;

        return Object.getPrototypeOf(Object(object)).constructor;
    }
function(object) {
        if (object === null || object === void 0)
            return object;

        return Object.getPrototypeOf(Object(object)).constructor;
    }
function ( object ) { if ( object === null || object === void 0 ) return object ; return Object . getPrototypeOf ( Object ( object ) ) . constructor ; }
Returns the constructor of the given object, works for objects and primitive types
@param {*} object The constructor to return for
@returns {Function} The constructor of the object
@global
Returns the constructor of the given object works for objects and primitive types