I am trying to find a way to efficiently add multiple items to an object without having to individually assign each one like messageStrings.x = 1.
For instance, let's say in one file we have:
var messageStrings = {
Edit: "Edit",
Cancel: "Cancel"
}
And in another file, I want to append more items to the existing object:
var messageStrings = {
Update: "Update",
Save: "Save"
}
What is the optimal method for bulk adding new items to an already established object?
Thank you.