ES2015 const and object expansion

So i've been fighting with this problem this morning. I'm relatively new to ES2015 and still learning a lot of things regarding the very nice constructs you can use in there. One that threw me off this morning is this: export const someDefaultReduxStateObject = { property1: null, property2: [] } myArray = [] myArray.push({...someDefaultReduxStateObject}) myArray.push({...someDefaultReduxStateObject}) … Continue reading ES2015 const and object expansion