lib/rules/prefer-template.js
function hasOctalEscapeSequence(node) {
    if (isConcatenation(node)) {
        return hasOctalEscapeSequence(node.left) || hasOctalEscapeSequence(node.right);
    }

    return isOctalEscapeSequence(node);
}
function hasOctalEscapeSequence(node) {
    if (isConcatenation(node)) {
        return hasOctalEscapeSequence(node.left) || hasOctalEscapeSequence(node.right);
    }

    return isOctalEscapeSequence(node);
}
function hasOctalEscapeSequence ( node ) { if ( isConcatenation ( node ) ) { return hasOctalEscapeSequence ( node . left ) || hasOctalEscapeSequence ( node . right ) ; } return isOctalEscapeSequence ( node ) ; }
Checks whether or not a node contains a octal escape sequence
@param {ASTNode} node A node to check
@returns {boolean} `true` if the node contains an octal escape sequence
Checks whether or not a node contains a octal escape sequence