DEV Community

Discussion on: How to iterate over objects using array methods

Collapse
 
the_riz profile image
Rich Winter

"New", but...
Onject.values
Object.entries

and while you have to know some about the enumerable properties of the object and its prototype-
for(let i in obj){ ... }

Collapse
 
wintercounter profile image
Victor Vincent

That's why there is for-of