function isCamelCasePattern(word) {
    var upper = 0, lower = 0, code = 0, whitespace = 0;
    for (var i = 0; i < word.length; i++) {
        code = word.charCodeAt(i);
        if (isUpper(code)) {
            upper++;
        }
        if (isLower(code)) {
            lower++;
        }
        if (isWhitespace(code)) {
            whitespace++;
        }
    }
    if ((upper === 0 || lower === 0) && whitespace === 0) {
        return word.length <= 30;
    }
    else {
        return upper <= 5;
    }
}
// look like camel case patterns.
look like camel case patterns.
look like camel case patterns .
function isCamelCasePattern(word) {
    var upper = 0, lower = 0, code = 0, whitespace = 0;
    for (var i = 0; i < word.length; i++) {
        code = word.charCodeAt(i);
        if (isUpper(code)) {
            upper++;
        }
        if (isLower(code)) {
            lower++;
        }
        if (isWhitespace(code)) {
            whitespace++;
        }
    }
    if ((upper === 0 || lower === 0) && whitespace === 0) {
        return word.length <= 30;
    }
    else {
        return upper <= 5;
    }
}
function isCamelCasePattern ( word ) { var upper = 0 , lower = 0 , code = 0 , whitespace = 0 ; for ( var i = 0 ; i < word . length ; i ++ ) { code = word . charCodeAt ( i ) ; if ( isUpper ( code ) ) { upper ++ ; } if ( isLower ( code ) ) { lower ++ ; } if ( isWhitespace ( code ) ) { whitespace ++ ; } } if ( ( upper === 0 || lower === 0 ) && whitespace === 0 ) { return word . length <= 30 ; } else { return upper <= 5 ; } }
look like camel case patterns.
look like camel case patterns .