TypeScript 链式调用&空值处理

459 阅读1分钟

TS 的「可选链」 与 「空值合并」

使用 columnInfo?.avatar?.url ?? ''

可选链与空值合并的参考链接

juejin.cn/post/684490…