Object.keys

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.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.