Returns the value for the given key in the given associative array or the given default value if the value is null.

  • Parameters

    • array: any

      Associative array that contains the value for the key.

    • key: string

      Key whose value should be returned.

    • OptionaldefaultValue: any

      Value to be returned if the value for the given key is null.

    Returns any