dist/hawtio-utilities.js
function trimLeading(text, prefix) {
        if (text && prefix) {
            if (_.startsWith(text, prefix) || text.indexOf(prefix) === 0) {
                return text.substring(prefix.length);
            }
        }
        return text;
    }
function trimLeading(text, prefix) {
        if (text && prefix) {
            if (_.startsWith(text, prefix) || text.indexOf(prefix) === 0) {
                return text.substring(prefix.length);
            }
        }
        return text;
    }
function trimLeading ( text , prefix ) { if ( text && prefix ) { if ( _ . startsWith ( text , prefix ) || text . indexOf ( prefix ) === 0 ) { return text . substring ( prefix . length ) ; } } return text ; }
Trims the leading prefix from a string if its present
@method trimLeading
@for Core
@static
@param {String} text
@param {String} prefix
@return {String}
Trims the leading prefix from a string if its present