javascript - Adding values to object in js -
so, have following js object structure:
i trying add value this, example, "234324" after "ewerewr".
i tried obj["d7vi"] = new_value;
but gets rid of previous values.
any help?
make it
obj["d7vi"].push(newvalue);
you need add array rather replace existing values.
Comments
Post a Comment