Spread Operator Object Array Javascript