javascript is object[key] value is object code example
Example 1: javascript iterate object key values
Object.entries(obj).forEach(([key, value]) => {
console.log(key, value);
});
Example 2: js get object keys
myObject = {
"key": "value"
}
Object.keys(myObject); // get array of keys