UNPKG

eslint-plugin-de-morgan

Version:

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

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