From 4d60d62c88642343b2fb15467e4aee9ca7eaf59e Mon Sep 17 00:00:00 2001 From: myapos Date: Sat, 23 Dec 2017 17:00:05 +0200 Subject: [PATCH] mend --- snippets/reducedFilter.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/reducedFilter.md b/snippets/reducedFilter.md index b8b95a195..a880c72bd 100644 --- a/snippets/reducedFilter.md +++ b/snippets/reducedFilter.md @@ -16,7 +16,7 @@ properties of original objects #### Info Used ES6 Array.reduce() in order to filter an array with objects based on condition. -If condition is met, then Array.reduce is used again to construct object with the predefined properties. Further more, in order to evaluate condition based in object properties item, must be passed through window to Function constructor. Finally, when new object is constructed then it is saved in the output array. +If condition is met, then Array.reduce is used again to construct object with the predefined properties. Further more, in order to dynamically evaluate condition based in object properties, item must be passed through window to Function constructor. Finally, when new object is constructed then it is saved in the output array. ```js const safeEval = (condition) => new Function('return '+condition)();