Returns the string and symbol keys of the own properties of an object. The own properties of an object
are those that are defined directly on that object, and are not inherited from the object's prototype.
Parameters
target: object
Object that contains the own properties.
Returns (string|symbol)[]
ownKeys(target:object):PropertyKey[]
Parameters
target: object
Returns PropertyKey[]
Zh
返回一个由目标对象自身的属性键组成的数组。
En
Returns an array of the target object's own property keys.
Returns the string and symbol keys of the own properties of an object. The own properties of an object are those that are defined directly on that object, and are not inherited from the object's prototype.