Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get keys of dictionary js

// Get keys of a dictionary
let dict = { a:1 , b:2 , c:3 }

console.log( Object.keys(dict) ) // expected output : ['a', 'b', 'c']
 
PREVIOUS NEXT
Tagged: #keys #dictionary #js
ADD COMMENT
Topic
Name
7+6 =