From 89cb11bccc1c6cc73cd4e4115e4fb237fad06d28 Mon Sep 17 00:00:00 2001 From: Justin Lee Date: Thu, 14 Dec 2017 14:52:25 -0800 Subject: [PATCH] removed unnecessary brackets around one parameter function --- snippets/pipe.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/pipe.md b/snippets/pipe.md index 11803210c..9c13f5e27 100644 --- a/snippets/pipe.md +++ b/snippets/pipe.md @@ -5,7 +5,7 @@ Use `Array.reduce()` to perform left-to-right function composition. The first (l ```js const pipe = (...fns) => fns.reduce((f, g) => (...args) => g(f(...args))) /* -const add5 = (x) => x + 5 +const add5 = x => x + 5 const multiply = (x, y) => x * y const multiplyAndAdd5 = pipe(