convert object to array in js from html

https://github.com/samanthaming/samanthaming.com/blob/master/images/tidbits/76-converting-object-to-array.jpg?raw=true