theultimate
6 years agoNew Contributor
Creating Dictionary in JavaScript
Hello everyone,
I need your help with creating a dictionary in JavaScript with multiple keys, like this:
array = { "Load Case" : { "(Support)1" : { "Location(ft)" : 0, "Fy(kips)" : 0, "Mz(kft)" : 0, "Deflection(in)": 0, "Rotation(Deg)" : 0 }, "2" : { "Location(ft)" : 0, "Fy(kips)" : 0, "Mz(kft)" : 0, "Deflection(in)": 0, "Rotation(Deg)" : 0 }, }, "Envelope" : { } };
What i m trying to do is to get the values from a grid, and for each line set the name from row[0] as the main key, and as subkeys the name which are on column[0] and after that add values to the subkeys from table[i][j].