Tin mới
JavaScript: Scripting language
Web APIs: Programming interfaces
Structuring content with HTML module
Dynamic scripting with JavaScript module
Non-object arguments are coerced to objects. undefined and null cannot be coerced to objects and throw a TypeError upfront. Only strings may have own enumerable properties, while all other primitives return an empty arra
Using Object.entries() on primitives
Non-object arguments are coerced to objects. undefined and null cannot be coerced to objects and throw a TypeError upfront. Only strings may have own enumerable properties, while all other primitives return an empty arra
Using Object.entries() on primitives
Non-object arguments are coerced to objects. undefined and null cannot be coerced to objects and throw a TypeError upfront. Only strings may have own enumerable properties, while all other primitives return an empty arra
Using Object.entries() on primitives
Non-object arguments are coerced to objects. undefined and null cannot be coerced to objects and throw a TypeError upfront. Only strings may have own enumerable properties, while all other primitives return an empty arra
The Map() constructor accepts an iterable of entries. With Object.entries, you can easily convert from Object to Map:
The Map() constructor accepts an iterable of entries. With Object.entries, you can easily convert from Object to Map:
Using array destructuring, you can iterate through objects easily.
Enumerability and ownership of properties
Object.prototype.propertyIsEnumerable()
This page was last modified on Jul 20, 2025 by MDN contributors.