@panzerdp/

SameFirmBlackrhino

ES6

No description

fork
loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.33957113750789425","path":"main.js","file":{"path":"main.js","content":{"asEncoding":{"base64":"Y29uc3QgcGVyc29uID0geyAgCiAgbmFtZTogJ0RhdmUnLAogIHN1cm5hbWU6ICdCb3dtYW4nCn07CgpPYmplY3QuZGVmaW5lUHJvcGVydHkocGVyc29uLCAnYWdlJywgeyAgCiAgZW51bWVyYWJsZTogZmFsc2UsIC8vIE1ha2UgdGhlIHByb3BlcnR5IG5vbi1lbnVtZXJhYmxlCiAgdmFsdWU6IDI1Cn0pOwpjb25zb2xlLmxvZyhwZXJzb24pOwoKY29uc3QgY2xvbmUgPSB7ICAKICAuLi5wZXJzb24KfTsKY29uc29sZS5sb2coY2xvbmUpOyAvLyA9PiB7IG5hbWU6ICdEYXZlJywgc3VybmFtZTogJ0Jvd21hbicgfSAg"},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const person = {  
  name: 'Dave',
  surname: 'Bowman'
};

Object.defineProperty(person, 'age', {  
  enumerable: false, // Make the property non-enumerable
  value: 25
});
console.log(person);

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