Check Object Properties in JavaScript: hasOwn, in, and Object.hasOwn | CodeTrail