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';