SonarJS linter helper functions
    Preparing search index...

    Function getProperty

    • Retrieves the property with the specified key from the given node.

      Parameters

      • expr: undefined | null | Node
      • key: string
      • ctx: RuleContext

      Returns undefined | null | Property

      The property if found, or null if not found, or undefined if property not found and one of the properties is an unresolved SpreadElement.