typestring test null code example
Example 1: typescript null and undefined check
if(!!someValue)
Example 2: anular check null
if(!a) // if a is negative,undefined,null,empty value then...
{
// do whatever
}
else {
// do whatever
}
if(!!someValue)
if(!a) // if a is negative,undefined,null,empty value then...
{
// do whatever
}
else {
// do whatever
}