Keys

From FirebugWiki

(Difference between revisions)
Jump to: navigation, search
(Separate Command Line API page for keys())
(Added parameter description and examples)
(One intermediate revision not shown)
Line 1: Line 1:
Returns an array containing the names of all properties of the object.
Returns an array containing the names of all properties of the object.
 +
 +
== Syntax ==
 +
<source lang="javascript">
 +
keys(object)
 +
</source>
 +
 +
== Parameters ==
 +
=== object ===
 +
Object to return the keys for.
 +
 +
== Examples ==
 +
<source lang="javascript">
 +
keys(myObject)
 +
</source>
 +
 +
Lists all the property names of the <code>myObject</code> object.
 +
 +
== See also ==
 +
* [[values]]
 +
* [[Command Line API]]

Revision as of 14:29, 13 July 2012

Returns an array containing the names of all properties of the object.

Contents

Syntax

keys(object)

Parameters

object

Object to return the keys for.

Examples

keys(myObject)

Lists all the property names of the myObject object.

See also

Personal tools