Function isIterationStatement

  • Test if a node is an IterationStatement.

    Parameters

    • node: Node

    Returns node is IterationStatement

    Whether the given node appears to be an IterationStatement.

    Example

    declare const node: ts.Node;

    if (isIterationStatement(node)) {
    // ...
    }