eslint-plugin-de-morgan
Version:
ESLint plugin for transforming negated boolean expressions via De Morgan’s laws
12 lines (11 loc) • 391 B
JavaScript
/**
* Checks whether the given AST node is a isLogicalExpression. This type guard
* function verifies if the provided node is of type 'isLogicalExpression'.
*
* @param node - The AST node to check.
* @returns True if the node is a isLogicalExpression, false otherwise.
*/
function isLogicalExpression(node) {
return node.type === 'LogicalExpression'
}
export { isLogicalExpression }