@panzerdp/

LightgraySleepyRooster

ES6

No description

fork
loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.6138968159882789","path":"main.js","file":{"path":"main.js","content":{"asEncoding":{"base64":"Y29uc3QgY2F0ID0geyAgCiAgc291bmQ6ICdtZW93JywKICBsZWdzOiA0Cn07Cgpjb25zdCBkb2cgPSB7ICAKICAuLi5jYXQsCiAgLi4uewogICAgc291bmQ6ICd3b29mJyAvLyA8LS0tLS0gT3ZlcndyaXRlcyBjYXQuc291bmQKICB9Cn07CmNvbnNvbGUubG9nKGRvZyk7IC8vID0+IHsgc291bmQ6ICd3b29mJywgbGVnczogNCB9IA=="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
const cat = {  
  sound: 'meow',
  legs: 4
};

const dog = {  
  ...cat,
  ...{
    sound: 'woof' // <----- Overwrites cat.sound
  }
};
console.log(dog); // => { sound: 'woof', legs: 4 } 
Babel Compiler v6.4.4 Copyright (c) 2014-2015 Sebastian McKenzie