我在节点/浏览器上玩传播语法。
console.log([{ name: "herry" }, { age: "10" }].reduce((acc, cur) => ({...cur,...acc})))
1) 使用 nodejs v6.10,
SyntaxError: Unexpected token ...
2) 铬 50
SyntaxError: Unexpected token ...
3)babel stage-0,它运行良好。
我只是在徘徊为什么它不能在节点 6.10 上运行,因为它对于传播操作都是绿色的。