Last active
January 22, 2019 06:47
-
-
Save anthonycoffey/6a4c7cffcc9c4b6958034f16e3069e55 to your computer and use it in GitHub Desktop.
jQuery Map array with property name as index
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var data = []; | |
jQuery.map(obj , function (n, i) { | |
data[n.name] = n.value; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment