SonarJS linter helper functions
    Preparing search index...

    Function getProperty

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

      Parameters

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

      Returns Property | null | undefined

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