From 0b844e4b3abbda87b55398f6b57f63dfd1e567d7 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Sat, 16 Dec 2017 13:43:15 +0200 Subject: [PATCH] Update and rename compose.md to compose-functions.md --- snippets/{compose.md => compose-functions.md} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename snippets/{compose.md => compose-functions.md} (95%) diff --git a/snippets/compose.md b/snippets/compose-functions.md similarity index 95% rename from snippets/compose.md rename to snippets/compose-functions.md index 90088ebe2..718755719 100644 --- a/snippets/compose.md +++ b/snippets/compose-functions.md @@ -1,4 +1,4 @@ -### Compose +### Compose functions Use `Array.reduce()` with the spread operator (`...`) to perform right-to-;eft function composition. The last (rightmost) function can accept one or more arguments; the remaining functions must be unary.