I have a simple check where I want to check if the given variable is >=0.
public print(value: any): void {
if(value >= 0) {
console.log('Greater than zero')
}
}
The catch here is when the incoming variable has value null, then it will become truthy and log the statement. Is there a clean way to avoid it, but not adding extra checks?