The following is not perfect, but work for most common circumstances.
if (value) {}
If you need percise checking
if (value != null && value !== '') {}
If you need to trim white spaces
if (value != null && value.trim()) { }
You can use lodash isEmpty.
_.isEmpty(null); // true_.isEmpty(''); // true_.isEmpty('hello') // false_.isEmpty([]) // true_.isEmpty([1]) // false_.isEmpty({}) // true_.isEmpty({test: true}) // false
But the following test return true as well.
_.isEmpty(true); // true_.isEmpty(false); // true_.isEmpty(1); // true_.isEmpty(0); // true