Is the following valid ECMAScript 6?
It seems to be supported by the latest version of Babel but it isn't by TypeScript.
I couldn't find any ES6 references dealing with this case.
var a = { foo : 'foo' };
var b = { ...a };
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…