eslint-plugin-de-morgan
Version:
ESLint plugin for transforming negated boolean expressions via De Morgan’s laws
9 lines (8 loc) • 326 B
TypeScript
import { LogicalExpression, Node } from 'estree'
/**
* Checks whether the given AST node represents a conjunction (logical AND).
*
* @param node - The AST node to check.
* @returns True if the node is a LogicalExpression with operator `&&`.
*/
export declare function isConjunction(node: Node): node is LogicalExpression