UNPKG

eslint-plugin-de-morgan

Version:

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

9 lines (8 loc) 325 B
import { LogicalExpression, Node } from 'estree' /** * Checks whether the given AST node represents a disjunction (logical OR). * * @param node - The AST node to check. * @returns True if the node is a LogicalExpression with operator `||`. */ export declare function isDisjunction(node: Node): node is LogicalExpression