lib/Ext/util/Collection.js
function(key) {
        var me = this,
            fromMap = me.map[key],
            item;

        if (fromMap !== undefined) {
            item = fromMap;
        }
        else if (typeof key == 'number') {
            item = me.items[key];
        }

        return typeof item != 'function' || me.getAllowFunctions() ? item : null; // for prototype!
    }
function(key) {
        var me = this,
            fromMap = me.map[key],
            item;

        if (fromMap !== undefined) {
            item = fromMap;
        }
        else if (typeof key == 'number') {
            item = me.items[key];
        }

        return typeof item != 'function' || me.getAllowFunctions() ? item : null; // for prototype!
    }
Returns the item associated with the passed key OR index. Key has priority over index. This is the equivalent of
calling {@link #getByKey} first, then if nothing matched calling {@link #getAt}.
@param {String/Number} key The key or index of the item.
@return {Object} If the item is found, returns the item. If the item was not found, returns `undefined`. If an item
was found, but is a Class, returns `null`.