From a1daf2e695ce9a7033ff8b1b85fcf16680d64143 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Mon, 1 Jan 2018 17:05:25 +0200 Subject: [PATCH] Update reducedFilter.md --- snippets/reducedFilter.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/reducedFilter.md b/snippets/reducedFilter.md index ba94f450c..b34d269fa 100644 --- a/snippets/reducedFilter.md +++ b/snippets/reducedFilter.md @@ -2,8 +2,8 @@ Filter an array of objects based on a condition while also filtering out unspecified keys. -Use `Array.filter()` to filter the array based on the predicate `fn` so that it returns the objects for -which the condition returned a truthy value. On the filtered array, use `Array.map()` to return the new object using `Array.reduce()` to filter out the keys which were not supplied as the `keys` argument. +Use `Array.filter()` to filter the array based on the predicate `fn` so that it returns the objects for which the condition returned a truthy value. +On the filtered array, use `Array.map()` to return the new object using `Array.reduce()` to filter out the keys which were not supplied as the `keys` argument. ```js const reducedFilter = (data, keys, fn) =>