core/Core.js
function getCommonType(elems) {
        if (elems && elems.length > 0) {
            var commonType = elems[0].getClass();
            while (!_.every(elems, function (e) { return (e instanceof commonType); })) {
                commonType = getSuperType(commonType);
            }
            return commonType;
        } else {
            return null;
        }
    }
function getCommonType(elems) {
        if (elems && elems.length > 0) {
            var commonType = elems[0].getClass();
            while (!_.every(elems, function (e) { return (e instanceof commonType); })) {
                commonType = getSuperType(commonType);
            }
            return commonType;
        } else {
            return null;
        }
    }
function getCommonType ( elems ) { if ( elems && elems . length > 0 ) { var commonType = elems [ 0 ] . getClass ( ) ; while ( ! _ . every ( elems , function ( e ) { return ( e instanceof commonType ) ; } ) ) { commonType = getSuperType ( commonType ) ; } return commonType ; } else { return null ; } }
Return a generalized type of given elements.

@param {Array.<Element>} elems
@return {constructor}
Return a generalized type of given elements .