function startsWithTemplateCurly(node) {
    if (node.type === "BinaryExpression") {
        return startsWithTemplateCurly(node.left);
    }
    if (node.type === "TemplateLiteral") {
        return node.expressions.length && node.quasis.length && node.quasis[0].range[0] === node.quasis[0].range[1];
    }
    return node.type !== "Literal" || typeof node.value !== "string";
}
function startsWithTemplateCurly(node) {
    if (node.type === "BinaryExpression") {
        return startsWithTemplateCurly(node.left);
    }
    if (node.type === "TemplateLiteral") {
        return node.expressions.length && node.quasis.length && node.quasis[0].range[0] === node.quasis[0].range[1];
    }
    return node.type !== "Literal" || typeof node.value !== "string";
}
function startsWithTemplateCurly ( node ) { if ( node . type === "BinaryExpression" ) { return startsWithTemplateCurly ( node . left ) ; } if ( node . type === "TemplateLiteral" ) { return node . expressions . length && node . quasis . length && node . quasis [ 0 ] . range [ 0 ] === node . quasis [ 0 ] . range [ 1 ] ; } return node . type !== "Literal" || typeof node . value !== "string" ; }
Determines whether a given node will start with a template curly expression (`${}`) when being converted to a template literal.
@param {ASTNode} node The node that will be fixed to a template literal
@returns {boolean} `true` if the node will start with a template curly.
Determines whether a given node will start with a template curly expression ( $ {} ) when being converted to a template literal .
Returns true if the node is a template curly