Difference between revisions of "Keys"

From FirebugWiki
Jump to: navigation, search
(Added description of syntax, hint for needing help and linked back to Command Line API)
m (Added categories)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{needsHelp}}
 
 
 
Returns an array containing the names of all properties of the object.
 
Returns an array containing the names of all properties of the object.
  
Line 7: Line 5:
 
keys(object)
 
keys(object)
 
</source>
 
</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 ==
 
== See also ==
 +
* [[values]]
 
* [[Command Line API]]
 
* [[Command Line API]]
 +
 +
[[Category:Firebug]]
 +
[[Category:UI]]
 +
[[Category:API]]

Latest revision as of 17:04, 21 November 2013

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

Syntax[edit]

keys(object)

Parameters[edit]

object[edit]

Object to return the keys for.

Examples[edit]

keys(myObject)

Lists all the property names of the myObject object.

See also[edit]