From 3b0eeb76f99b8ecdf1ef33d0977e2485a11185a9 Mon Sep 17 00:00:00 2001 From: aiden01 Date: Mon, 12 Aug 2019 21:58:48 -0400 Subject: [PATCH] fix: typo in spread operator post --- src/content/resources/javascript/spread-operator.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/resources/javascript/spread-operator.md b/src/content/resources/javascript/spread-operator.md index 542a469..57952d6 100644 --- a/src/content/resources/javascript/spread-operator.md +++ b/src/content/resources/javascript/spread-operator.md @@ -66,7 +66,7 @@ const b = [3, 4]; console.log([...a, ...b]); // [1, 2, 3, 4] - Merged! ``` -Here's a real-world example. Imagine that you're making a function which accepts an ``options`` object as argument, but you also what to have default values for this object. Here's a not so good way to do it without spread operator: +Here's a real-world example. Imagine that you're making a function which accepts an ``options`` object as argument, but you also want to have default values for this object. Here's a not so good way to do it without spread operator: ```js const f = (opts) => {