Object.hasOwn() — the modern, safe way to check own properties in JavaScript
Objects can hold properties that come from their own shape or from their prototype chain. Knowing whether a property is an object's own property matters when you validate input, merge objects, or iter
faisal-paper.hashnode.dev4 min read