This is my object literal:
var obj = {key1: value1};
How can I add
{key1: value1,value2,value3}
to obj
?
The value of your object would have to be an array or object that stores the separate values, like so:
{key1: [value1,value2,value3]}
Or
{key1: new compositeValue(value1, value2, value3)}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With