DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
swap key value object javascript
function swap(json){ var ret = {}; for(var key in json){ ret[json[key]] = key; } return ret; }
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#swap
#key
#object
#javascript
ADD COMMENT
Topic
COMMENT
Name
4+4 =
Submit