SyntaxFix
Write A Post
Hire A Developer
Questions
In ES5 or ES6 if you need check it several times you cand do:
const excluded = [null, undefined, ''];_x000D_ _x000D_ if (!exluded.includes(varToCheck) {_x000D_ // it will bee not null, not undefined and not void string_x000D_ }