object keys javascript examples on array Example: js get object keys myObject = { "key": "value" } Object.keys(myObject); // get array of keys