lib/rules/no-useless-concat.js
function getRight(node) {
    let right = node.right;

    while (isConcatenation(right)) {
        right = right.left;
    }
    return right;
}
function getRight(node) {
    let right = node.right;

    while (isConcatenation(right)) {
        right = right.left;
    }
    return right;
}
function getRight ( node ) { let right = node . right ; while ( isConcatenation ( right ) ) { right = right . left ; } return right ; }
Get's the left most node on the right side of a BinaryExpression with + operator.
@param {ASTNode} node - A BinaryExpression node to check.
@returns {ASTNode} node
Get s the left most node on the right side of a BinaryExpression with + operator .