get-all-property-names
Get all property names of an object/function/class including non-enumerable and inherited ones.
Is similar to Object.getOwnPropertyNames()
but traverses up all the prototype chain
of object/function/class.
All properties and methods starting and ending with __
, such as __defineGetter__
, are removed.
All methods and properties from Object will be removed if not are overwritten.
Example
{} {} {} console; // [ "metC" ]console; // [ "metA","metB", "metC" ]