function commonSuffixLength(a, b) {
    var i, len = Math.min(a.length, b.length);
    var aLastIndex = a.length - 1;
    var bLastIndex = b.length - 1;
    for (i = 0; i < len; i++) {
        if (a.charCodeAt(aLastIndex - i) !== b.charCodeAt(bLastIndex - i)) {
            return i;
        }
    }
    return len;
}
/**
 * @returns the length of the common suffix of the two strings.
 */
@returns the length of the common suffix of the two strings.
@returns the length of the common suffix of the two strings .
function commonSuffixLength(a, b) {
    var i, len = Math.min(a.length, b.length);
    var aLastIndex = a.length - 1;
    var bLastIndex = b.length - 1;
    for (i = 0; i < len; i++) {
        if (a.charCodeAt(aLastIndex - i) !== b.charCodeAt(bLastIndex - i)) {
            return i;
        }
    }
    return len;
}
function commonSuffixLength ( a , b ) { var i , len = Math . min ( a . length , b . length ) ; var aLastIndex = a . length - 1 ; var bLastIndex = b . length - 1 ; for ( i = 0 ; i < len ; i ++ ) { if ( a . charCodeAt ( aLastIndex - i ) !== b . charCodeAt ( bLastIndex - i ) ) { return i ; } } return len ; }
@returns the length of the common suffix of the two strings.
@returns the length of the common suffix of the two strings .