Skip to content

Instantly share code, notes, and snippets.

@anthonycoffey
Last active January 22, 2019 06:47
Show Gist options
  • Save anthonycoffey/6a4c7cffcc9c4b6958034f16e3069e55 to your computer and use it in GitHub Desktop.
Save anthonycoffey/6a4c7cffcc9c4b6958034f16e3069e55 to your computer and use it in GitHub Desktop.
jQuery Map array with property name as index
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