From 35c0412b404c4706f2256cb02eea4838b6769f4b Mon Sep 17 00:00:00 2001 From: yazeedb Date: Wed, 18 Apr 2018 20:47:57 -0400 Subject: [PATCH] word choice --- snippets/when.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/when.md b/snippets/when.md index 16dbe9a54..fd36e1a20 100644 --- a/snippets/when.md +++ b/snippets/when.md @@ -1,7 +1,7 @@ ### when Tests a value, `x`, against a predicate function. If `true`, return `fn(x)`. Else, return `x`. -`when(pred, whenTrue)` returns another function expecting `x` for better composability. +`when(pred, whenTrue)` returns a function expecting `x` for better composability. ```js const when = (pred, whenTrue) => (x) => pred(x) ? whenTrue(x) : x;