From 78d9b668dda9d7b4d8caf3da724596311f0007a9 Mon Sep 17 00:00:00 2001 From: yuri Date: Sun, 25 Feb 2018 14:24:17 +0800 Subject: [PATCH] =?UTF-8?q?Null=20=E4=BC=A0=E5=AF=BC=E8=BF=90=E7=AE=97?= =?UTF-8?q?=E7=AC=A6=E6=8F=90=E6=A1=88=E5=9C=B0=E5=9D=80=E6=9B=BF=E6=8D=A2?= =?UTF-8?q?=E4=B8=BAtc39=E5=AE=98=E6=96=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/proposals.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/proposals.md b/docs/proposals.md index 9ca613f..97ad416 100644 --- a/docs/proposals.md +++ b/docs/proposals.md @@ -129,7 +129,7 @@ const firstName = (message && message.body.user.firstName) || 'default'; ``` -这样的层层判断非常麻烦,因此现在有一个[提案](https://github.com/claudepache/es-optional-chaining),引入了“Null 传导运算符”(null propagation operator)`?.`,简化上面的写法。 +这样的层层判断非常麻烦,因此现在有一个[提案](https://github.com/tc39/proposal-optional-chaining),引入了“Null 传导运算符”(null propagation operator)`?.`,简化上面的写法。 ```javascript const firstName = message?.body?.user?.firstName || 'default';