From 977f3627952939bd9f2b1f5d1f44ca98d05ab669 Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Thu, 3 Oct 2019 19:02:58 +0200 Subject: [PATCH] Future section --- index.html | 60 +++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 48 insertions(+), 12 deletions(-) diff --git a/index.html b/index.html index 96c2960..7fe3b3b 100755 --- a/index.html +++ b/index.html @@ -27,7 +27,8 @@ var link = document.createElement('link'); link.rel = 'stylesheet'; link.type = 'text/css'; - link.href = window.location.search.match(/print-pdf/gi) ? 'https://unpkg.com/reveal.js/css/print/pdf.css' : 'https://unpkg.com/reveal.js/css/print/paper.css'; + link.href = window.location.search.match(/print-pdf/gi) ? 'https://unpkg.com/reveal.js/css/print/pdf.css' : + 'https://unpkg.com/reveal.js/css/print/paper.css'; document.getElementsByTagName('head')[0].appendChild(link); @@ -424,18 +425,17 @@
-

Also there are...

- -
+

Also there are...

+ + -

Examples

@@ -524,6 +524,42 @@
+
+
+

Future

+
+
+

Optional Chaining

+ TS 3.7 +

+						a && a.b && a.b.c // 🤬
+					
+

+						a?.b?.c // 🚀
+					
+
+
+

Null Coalescing

+ TS 3.7 +

+						something || 'default'
+					
+

+						false || 'default'      // => 'default'
+						0     || 'default'      // => 'default'
+					
+

+						something ?? 'default'  // 🚀
+					
+

+						0     ?? 'default'      // => 0
+						false ?? 'default'      // => false
+					
+

+						(something === null || something === undefined) ? something : 'default'
+					
+
+