Javascript Code Check if Variable Null or Undefined
Javascript Code to Check if Variable is non-existent Meaning the Javascript Variable is NULL or UNDEFINED
Home
Short:
let nonExistent = ((myVar === undefined)||(myVar === null));
source code home