From d277b696142a8c517bd2f9ca304fe24dceda8907 Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Wed, 9 Oct 2019 09:54:47 +0200 Subject: [PATCH] shorten constructor --- index.html | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/index.html b/index.html index 00e92c0..b1dfadc 100755 --- a/index.html +++ b/index.html @@ -466,24 +466,6 @@ } -
-

Advanced Stuff

-

-						class Auto {
-							wheels?: number
-							doors?: number
-							// ...
-						
-							constructor(init: Partial<Auto>) {
-								Object.assign(this, init)
-							}
-						}
-
-						const a = new Auto({
-							doors: 5,
-						})
-					
-

Advanced Stuff