How to get keys of object in JavaScript

Objects
By Jad Joubran · 
Last updated Dec 16, 2017
const person = {
  key: "value",
  first_name: "John",
  last_name: "Doe"
};

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