JSFiddle - React, Tailwind, and code Playground
JavaScript
function AdorjanPrinczHasOwnProperty(obj, prop) {
return obj[prop] !== undefined;
}
var x = {};
Object.defineProperty(x, "test", {});
console.log("value of test: %o", x.test);
console.log("in x: %o", "test" in x);
console.log("own property: %o", x.hasOwnProperty("test"));
console.log("AdorjanPrinczHasOwnProperty: %o", AdorjanPrinczHasOwnProperty(x, "test"));