Compare Revisions

Object.keys()

Revision 357333:

Revision 357333 by datibbaW on

Revision 406791:

Revision 406791 by jzazove on

Title:
keys
keys
Slug:
JavaScript/Reference/Global_Objects/Object/keys
JavaScript/Reference/Global_Objects/Object/keys
Tags:
"ECMAScript5","JavaScript 1.8.5"
"ECMAScript5","JavaScript 1.8.5"
Content:

Revision 357333
Revision 406791
tt76 
77// array like object with random key ordering
78var an_obj = { 100: "a", 2: "b", 7: "c"};
79alert(Object.keys(an_obj)); // will alert "2, 7, 100"

Back to History