if(VarName === undefined)if(typeof VarName === 'undefined')if(['undefined', undefined, null, false, 0, "" ].includes(VarName) )let a; // неопределена
let b = ['undefined', undefined, null, false, 0, "" ]
let e = (b.includes(a)) ? 'В массиве присутствует undefined' : 'В массиве отсутствует undefined';if(VarName === undefined)if(['undefined', undefined, null, false, 0, "" ].includes(VarName) )if (!VarName)