Object
Last updated: 2026-09-09
Object Object
Object is the base class with static methods.
| Category | Objects |
|---|---|
| ES version | ES1 |
📝 Syntax
Object.keys(obj);
▶ Example
Edit the code, press Run, and see the result in the output panel:
Output:
['name']
💡 Tip Object.entries + for...of is best practice.
ℹ️ info Object.keys does not traverse prototypes.
🏷️ Related Objects
💡 Related Cases
More case studies coming soon — check back later.
📚 Related Tutorials
❓ FAQ
QDoes it traverse prototypes?
ANo — own enumerable only.
QHow to deep copy?
AstructuredClone(obj).
QIs freeze deep?
ANo — shallow.