Alternative of Object.assign(...array)
You are looking for
var obj = Object.assign({}, ...array)
that creates a new object instead of mutating array[0]
.
Seems to me the method you're looking for is .concat()
Returns a new array which is a merge of the target and the source.