Null Coalescing در TypeScript 3.7
نویسنده: وحید نصیری
تاریخ: ۱۳۹۸/۰۶/۲۴ ۸:۳۴
آدرس: www.dntips.ir
// With TS 3.7: // Use the first of firstResult/secondResult which is *defined*: const result = firstResult ?? secondResult; // Use configSetting from provided options if *defined*, or 'default' if not: this.configValue = options.configValue ?? 'default';