Let’s assume we have the following JavaScript object:

ahash = {"one": [1,2,3], "two": [4,5,6]}

Is there a function that returns the first key name for the given object?

From the example above I want to get one as a result of that function.

8 Answers
8

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *