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

    Note: Non-object values are coerced to objects. See the ES spec for more details.

    Parameters

    • Optionalobject: any

      The object to query.

    Returns string[]

    Returns the array of property names.