DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
referencing an array value in object key js
// use square bracket to wrap the array/object reference let myObj = { [myArr[0]]: 'Value' };
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#referencing
#array
#object
#key
#js
ADD COMMENT
Topic
COMMENT
Name
2+7 =
Submit