lib/rules/no-implicit-coercion.js
function isMultiplyByOne(node) {
    return node.operator === "*" && (
        node.left.type === "Literal" && node.left.value === 1 ||
        node.right.type === "Literal" && node.right.value === 1
    );
}
function isMultiplyByOne(node) {
    return node.operator === "*" && (
        node.left.type === "Literal" && node.left.value === 1 ||
        node.right.type === "Literal" && node.right.value === 1
    );
}
function isMultiplyByOne ( node ) { return node . operator === "*" && ( node . left . type === "Literal" && node . left . value === 1 || node . right . type === "Literal" && node . right . value === 1 ) ; }
Checks whether or not a node is a multiplying by one.
@param {BinaryExpression} node - A BinaryExpression node to check.
@returns {boolean} Whether or not the node is a multiplying by one.
Checks whether or not a node is a multiplying by one .