I have an issue with ternary operation:
let a = undefined ? \"Defined!\" : \"Definitely Undefined\", b = abc ? \"Defined!\" : \"Definitely Undefined\", // Re
state = (typeof state !== "undefined") ? state : '';
This way you can check undefined variable in a ternary operator.