const profileObj =
const profileArray = Object.values(profileObj);
You can use this if you are using babel but if not I will show you below how you can do this in a more widely supported manner with
const profileArray = Object.keys(profileObj).map(i =>profileObj[i])
This second method is quite well supported. Check out both Object Values and Object Keys MDN documentation to learn where you may have issues with support and for more info on these features.
As a note, if you prefer a key valued pair check out Object Entries.
That’s it for now.
If you liked this article, then please subscribe to my YouTube Channel for video tutorials.
You can also find me on Twitter and Facebook.