JSFiddle - React, Tailwind, and code Playground
TypeScript
function test(obj?: { someProperty: string}) {
return Boolean(obj && obj.someProperty);
}
console.log(typeof(test({"test" : "test"})))
function test(obj?: { someProperty: string}) {
return Boolean(obj && obj.someProperty);
}
console.log(typeof(test({"test" : "test"})))