diff --git a/README.md b/README.md index 039195a8..99a942f7 100644 --- a/README.md +++ b/README.md @@ -951,7 +951,7 @@ | **Key Order** | Keys are unordered (in practice, insertion order is mostly preserved for string keys, but not guaranteed) | Keys are ordered by insertion; iteration follows insertion order | | **Size Property** | No built-in way to get the number of keys; must use `Object.keys(obj).length` | Use the `.size` property for the number of entries | | **Iterability** | Not directly iterable; must use `Object.keys`, `Object.values`, or `Object.entries` | Directly iterable with `for...of`, `.keys()`, `.values()`, `.entries()` | - | **Prototype** | Has a prototype chain; may have default properties that can collide with custom keys (can be avoided with `Object.create(null)`) | Does not have a prototype, so there are no default keys | + | **Prototype** | Has a prototype chain; may have default properties that can collide with custom keys (can be avoided with `Object.create(null)`) | Map does not traverse the prototype chain for key lookup | | **Performance** | May be less efficient for frequent additions/removals | Optimized for frequent additions and deletions | | **Serialization** | Can be easily serialized to JSON | Cannot be directly serialized to JSON |