Skip to content

Commit 390de45

Browse files
committed
feat: add isChainExpression
1 parent 164fa0e commit 390de45

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/node-utils/is-node-of-type.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ export const isVariableDeclaration = ASTUtils.isNodeOfType(
2121
export const isAssignmentExpression = ASTUtils.isNodeOfType(
2222
AST_NODE_TYPES.AssignmentExpression
2323
);
24+
export const isChainExpression = ASTUtils.isNodeOfType(
25+
AST_NODE_TYPES.ChainExpression
26+
);
2427
export const isSequenceExpression = ASTUtils.isNodeOfType(
2528
AST_NODE_TYPES.SequenceExpression
2629
);

0 commit comments

Comments
 (0)