• Creates an array of the own and inherited enumerable property names of object.

    Note: Non-object values are coerced to objects.

    Parameters

    • Optionalobject: any

      The object to query.

    Returns string[]

    An array of property names.