lib/rules/no-implicit-coercion.js
function isEmptyString(node) {
    return astUtils.isStringLiteral(node) && (node.value === "" || (node.type === "TemplateLiteral" && node.quasis.length === 1 && node.quasis[0].value.cooked === ""));
}
function isEmptyString(node) {
    return astUtils.isStringLiteral(node) && (node.value === "" || (node.type === "TemplateLiteral" && node.quasis.length === 1 && node.quasis[0].value.cooked === ""));
}
function isEmptyString ( node ) { return astUtils . isStringLiteral ( node ) && ( node . value === "" || ( node . type === "TemplateLiteral" && node . quasis . length === 1 && node . quasis [ 0 ] . value . cooked === "" ) ) ; }
Checks whether a node is an empty string literal or not.
@param {ASTNode} node The node to check.
@returns {boolean} Whether or not the passed in node is an
empty string literal or not.
Checks whether a node is an empty string literal or not .