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