¿Cómo funciona el .text () de jQuery internamente?

Intenté rápidamente encontrar la implementación en la fuente de jQuery, pero solo encontréest que en realidad no parece definirlo completamente.

De la fuente jQuery

jQuery.fn.extend({
    text: function( text ) {
        if ( jQuery.isFunction(text) ) {
            return this.each(function() {
                return jQuery(this).text( text.call(this) );
            });
        }

        if ( typeof text !== "object" && text !== undefined ) {
            return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );
        }

        return jQuery.getText( this );
    },

¿Nadie sabe

Aclaración
Yo se comoutiliza eso. Solo quiero saber cómo obtener el texto de un elemento a la jQuery cuando jQuery no está disponible.

Respuestas a la pregunta(5)

Su respuesta a la pregunta