Get a field from a wrapped object. Return undefined if the field is missing or empty, or opt instance is None.
interface A {x?: number;}const aFull: A = {x: 4};opt(aFull).propOrUndef('x'); // 4const aEmpty: A = {};opt(aEmpty).propOrUndef('x'); // undefined
Get a field from a wrapped object. Return undefined if the field is missing or empty, or opt instance is None.