ts-api-utils - v3.0.0-rc.1
    Preparing search index...

    Function isDestructuringPattern

    • Test if a node is a DestructuringPattern.

      Parameters

      • node: Node

      Returns node is DestructuringPattern

      Whether the given node appears to be a DestructuringPattern.

      declare const node: ts.Node;

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