how to check if array of object value has is an empty string code example
Example 1: check undefined object javascript one liner set to emtpy
const isEmpty = Object.values(object).every(x => (x === null || x === ''));
Example 2: check undefined object javascript one liner set to emtpy
console.log(myVar == null ? myVar.myProp : 'fallBackValue');