check if null or empty typescript code example Example: javascript not null if (variable !== null) { console.log("Var is NOT null"); }