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

const keys = Object.keys(person);  
console.log(keys); // => ['name', 'surname']  
Babel Compiler v6.4.4 Copyright (c) 2014-2015 Sebastian McKenzie