Three quick ways to convert objects to arrays
· ☕ 2 min read
Easily convert objects to arrays and iterate to your heart’s content.
There are multiple ways of converting an object to an array (which, also is an object but a different one at that.)
Method 1: A simple Object.values() method The first idea that comes to mind is to just use Object.