SyntaxFix
Write A Post
Hire A Developer
Questions
Use Object.keys()... it's the way to go.
Object.keys()
Full documentation is available on the MDN site linked below:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys