I have seen lots of answers in the other way, but i couldnt find array of objects into object of objects
the following example of what I want: i want to transform this:
var = [
{"a" : {"min" : 0.5}},
{"b" : {"max" : 0.6}},
{"c" : {"min" : 0.3}}]
to this:
var = {
"a" : {"min" : 0.5},
"b" : {"max" : 0.6},
"c" : {"min" : 0.3}
}
array of objets to object of objects,
So I can use this solver: https://github.com/JWally/jsLPSolver
thanks