Write a function called keys, which accepts an object and returns an array of all of the keys in the object. code example
Example: Write a function called keys, which accepts an object and returns an array of all of the keys in the object.
function destructivelyUpdateObjectWithKeyAndValue(obj, key, value) {
obj[key] = value
return obj
}
const recipe = { eggs: 3 }
destructivelyUpdateObjectWithKeyAndValue(recipe, 'flour', '3 cups')
// returns { eggs: 3, flour: '3 cups' }
// but also:
recipe // { eggs: 3, flour: '3 cups' }