dist/hawtio-utilities.js
function lineCount(value) {
        var rows = 0;
        if (value) {
            rows = 1;
            value.toString().each(/\n/, function () { return rows++; });
        }
        return rows;
    }
function lineCount(value) {
        var rows = 0;
        if (value) {
            rows = 1;
            value.toString().each(/\n/, function () { return rows++; });
        }
        return rows;
    }
function lineCount ( value ) { var rows = 0 ; if ( value ) { rows = 1 ; value . toString ( ) . each ( / \n / , function ( ) { return rows ++ ; } ) ; } return rows ; }
Returns the number of lines in the given text

@method lineCount
@static
@param {String} value
@return {Number}
Returns the number of lines in the given text