Get the first key name of a JavaScript object [duplicate]

In Javascript you can do the following:

Object.keys(ahash)[0];

Leave a Comment