In Javascript you can do the following:
Object.keys(ahash)[0];
More Related Contents:
- How to edit my existing JS script to upload form when submit is clicked? [closed]
- Sort JavaScript object by key
- window.onload vs $(document).ready()
- How can I check if a string is a valid number?
- How do I iterate through table rows and cells in JavaScript?
- Browser-native JSON support (window.JSON)
- How to replace all occurrences of a string in JavaScript
- How to get pseudo element?
- Get child node index
- Export to csv in jQuery
- How to Detect Browser Window /Tab Close Event?
- !function(){ }() vs (function(){ })()
- Why {} + {} is NaN only on the client side? Why not in Node.js?
- Sum all the digits of a number Javascript
- Can Protractor and Karma be used together?
- Extremely large numbers in javascript
- Load and execute external js file in node.js with access to local variables?
- convert iso date to milliseconds in javascript
- Finding DOM node index
- ReferenceError and the global object
- Limit the number of character in tinyMCE
- React js change child component’s state from parent component
- XMLHttpRequest (Ajax) Error
- Make youtube video fullscreen using iframe and javascript API
- Simulate click event on react element
- How can I convert a date value in ISO 8601 format to a date object in JavaScript?
- “Aw, Snap” when data uri is too large
- React cannot read property map of undefined
- What are window.opener / window.parent / window.top?
- Load static JSON file in Webpack