Function has

  • Check if a given property is present in a given object.

    Returns

    true if the object has the property name.

    Parameters

    • obj: any

      The object to check.

    • attr: PropertyKey

      A property key name.

    Returns boolean

Generated using TypeDoc