150
rated 0 times
[
154]
[
4]
/ answers: 1 / hits: 20648
/ 10 Years ago, sat, march 1, 2014, 12:00:00
Say that I have an object with key/value pair as the following:
var someVar = {
color: white,
font_size: 30px,
font_weight: normal
...some more variables and functions
};
Is there a way to do a multiple assignment to those keys instead of having to do something like this:
someVar.color = blue;
someVar.font_size = 30px;
...
More From » object