© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Aarov
How can I read the properties of an object in js?
Gayathri Devi Srinivasan
Flutter Developer 💙 @GeekyAnts | Tech Speaker 🎙| Techie Blogger 📝
You can use either
Object.values(data) // ['bar', 'quux'] Object.entries(data) // [['foo', 'bar'], ['baz', 'quux']]
also check this once in console for better understanding.