Retrieves names of an object's properties
Syntax
Object.keys( obj )
Parameters
Parameter | Description |
---|---|
obj | Object which keys to enumerate |
Description
Note that the order of returned keys is not specified and is platform dependent.
Returns
Array names of all object's own properties.