Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get keys objet javascript

var foo = {
  'alpha': 'puffin',
  'beta': 'beagle'
};

var keys = Object.keys(foo);
console.log(keys) // ['alpha', 'beta'] 
// (or maybe some other order, keys are unordered).
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #keys #objet #javascript
ADD COMMENT
Topic
Name
2+5 =