SyntaxFix
Write A Post
Hire A Developer
Questions
Simple way to deal with merging single array values.
var values[0] = {"id":1235,"name":"value 1"} values[1] = {"id":4323,"name":"value 2"} var object=null; var first=values[0]; for (var i in values) if(i>0) object= $.merge(values[i],first)