From f6969a365296ddbf20132aa2304537db69d692dc Mon Sep 17 00:00:00 2001 From: Roberto Civille Rodrigues Date: Thu, 11 Jun 2015 16:47:00 -0300 Subject: [PATCH] simpler list matching var [a, , c] = [1, 2, 3]; is valid too, but I think the possible confusion wasn't the intended purpose --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f724911..e33e065 100644 --- a/README.md +++ b/README.md @@ -132,7 +132,7 @@ Destructuring allows binding using pattern matching, with support for matching a ```JavaScript // list matching -var [a, , b] = [1,2,3]; +var [a, b, c] = [1, 2, 3]; // object matching var { op: a, lhs: { op: b }, rhs: c }