We already have:
functionisNotUndefined(obj:any): obj is string|number|boolean|MyCustomType|null|MyOtherCustomType{returntypeofobj!=="undefined";}Now we just need:
functionisNotUndefined(obj:any): obj is notundefined{// or isnotreturntypeofobj!=="undefined";}
We already have:
Now we just need: