Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

object to map javascript

const map = new Map(Object.entries({foo: 'bar'}));

map.get('foo'); // 'bar'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #object #map #javascript
ADD COMMENT
Topic
Name
9+6 =