src/ecore.js
function(type) {
        if (!type || !this.eClass) return false;

        var typeName = type.eClass ? type.get('name') : type;

        return this.eClass.get('name') === typeName;
    }
function(type) {
        if (!type || !this.eClass) return false;

        var typeName = type.eClass ? type.get('name') : type;

        return this.eClass.get('name') === typeName;
    }
function ( type ) { if ( ! type || ! this . eClass ) return false ; var typeName = type . eClass ? type . get ( 'name' ) : type ; return this . eClass . get ( 'name' ) === typeName ; }
Returns true if the EObject is a direct instance of the EClass.  @method isTypeOf @param {String} type @return {Boolean}
Returns true if the EObject is a direct instance of the EClass .