main.js
1
2
3
4
5
6
7
8
9
10
11
const bird = {  
  type: 'pigeon',
  color: 'white'
};

const birdClone = {  
  ...bird
};

console.log(birdClone); // => { type: 'pigeon', color: 'white' }  
console.log(bird === birdClone); // => false  
Babel Compiler v6.4.4 Copyright (c) 2014-2015 Sebastian McKenzie