get an object's list of owned keys (string keys and symbol keys).
Note
owned keys of an object are not the same as just any key of the object.
an owned key is one that it directly owned by the object, not owned through inheritance, such as the class methods.
more precisely, in javascript, which ever member of an object that we call a property, is an owned key.
if you wish to acquire all remaining inherited keys of an object, you will want use getInheritedPropertyKeys.
get an object's list of owned keys (string keys and symbol keys).
owned keys of an object are not the same as just any key of the object. an owned key is one that it directly owned by the object, not owned through inheritance, such as the class methods. more precisely, in javascript, which ever member of an object that we call a property, is an owned key.
if you wish to acquire all remaining inherited keys of an object, you will want use getInheritedPropertyKeys.
Example