lib/rules/prefer-template.js
function hasNonStringLiteral(node) {
    if (isConcatenation(node)) {

        // `left` is deeper than `right` normally.
        return hasNonStringLiteral(node.right) || hasNonStringLiteral(node.left);
    }
    return !astUtils.isStringLiteral(node);
}
function hasNonStringLiteral(node) {
    if (isConcatenation(node)) {

        // `left` is deeper than `right` normally.
        return hasNonStringLiteral(node.right) || hasNonStringLiteral(node.left);
    }
    return !astUtils.isStringLiteral(node);
}
function hasNonStringLiteral ( node ) { if ( isConcatenation ( node ) ) { // `left` is deeper than `right` normally. return hasNonStringLiteral ( node . right ) || hasNonStringLiteral ( node . left ) ; } return ! astUtils . isStringLiteral ( node ) ; }
Checks whether or not a given binary expression has non string literals.
@param {ASTNode} node - A node to check.
@returns {boolean} `true` if the node has non string literals.
Checks whether or not a given binary expression has non string literals .