DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
7+8 =
Submit