Is there a shorter way to check if a string is either null or empty? Do I need to write every time 2 conditions inside if
to check it?
validator: (value) {
if (value == null || value.isEmpty){
//....
}
}
In python we can do if value
and it works. In javascript we could do if(!value)
.