📅  最后修改于: 2022-03-11 15:03:43.689000             🧑  作者: Mango
let foo = obj.maybeUndefined ?? "default value";
// why not 'or' ?
let obj = { maybeUndefined: 0 };
let foo = obj.maybeUndefined || 1; // foo == 1