2017-06-07 03:22:51 -04:00

1 line
60 B
JavaScript

typeof foo !== "undefined" && foo !== null ? foo.bar : null;