Glossary: Software Design Patterns in JavaScript
Object.hasOwn
Checks whether a key is the object's own, not inherited, so a name like "constructor" can't sneak into the CARRIERS lookup.
Glossary: Software Design Patterns in JavaScript
Checks whether a key is the object's own, not inherited, so a name like "constructor" can't sneak into the CARRIERS lookup.