UNPKG

eslint-plugin-de-morgan

Version:

ESLint plugin for transforming negated boolean expressions via De Morgan’s laws

12 lines (11 loc) 379 B
/** * Checks whether the given AST node is a BinaryExpression. This type guard * function verifies if the provided node is of type 'BinaryExpression'. * * @param node - The AST node to check. * @returns True if the node is a BinaryExpression, false otherwise. */ function isBinaryExpression(node) { return node.type === 'BinaryExpression' } export { isBinaryExpression }