DEV Community

Discussion on: Three dots ( … ) in JavaScript

Collapse
 
arfyfr profile image
Pascal Borschneck

Hi I noticed that the Shallow-cloning isn't working in Edge (18)

var obj1 = { foo: 'bar', x: 42 };
var obj2 = { foo: 'baz', y: 13 };

var clonedObj = { ...obj1 };

Result: error in console 'Expected identifier, string or number'