The objKeys() method returns an array of a given object's own enumerable property names, iterated in
the same order that a normal loop would.
objKeys() returns an array whose elements are strings corresponding to the enumerable properties found
directly upon object. The ordering of the properties is the same as that given by looping over the
properties of the object manually.
The
objKeys()
method returns an array of a given object's own enumerable property names, iterated in the same order that a normal loop would.objKeys() returns an array whose elements are strings corresponding to the enumerable properties found directly upon object. The ordering of the properties is the same as that given by looping over the properties of the object manually.
Example