Five ES6 features to make your life easier
Scott Domes
3318

const obj = { 1: 'one', 2: 'two' }
Object.keys(targetObject).forEach(key => {
console.log(targetObject[key])
}
// 'one'
// 'two'

Is there an error between variable “obj” and “targetObject”?

Show your support

Clapping shows how much you appreciated Raymond Lee’s story.