My question is, Is this a correct validation? And if it is, then what is the name of the type of validation?
I tried to use this and it doesn't work:
const existsProperty = data?.author
Also, I tried this validation and it works, what is the name of this type of validation?
const existsProperty = !!data.author