main.js
1
2
3
4
5
6
const person = {  
  name: 'Dave',
  surname: 'Bowman'
};

console.log({ ...person }); // => { name: 'Dave', surname: 'Bowman' }  
Babel Compiler v6.4.4 Copyright (c) 2014-2015 Sebastian McKenzie