How to get keys of object in JavaScript

Last updated Dec 16, 2017
const person = {
    key: 'value',
    first_name: 'John',
    last_name: 'Doe'
};

Object.keys(person);
['key', 'first_name', 'last_name']