From 7238f645393bea9e4c1f3194882f22d8bcec4246 Mon Sep 17 00:00:00 2001 From: Anonymous-dev-v <83170790+Anonymous-dev-v@users.noreply.github.com> Date: Tue, 5 Apr 2022 22:09:13 +0300 Subject: [PATCH] Update filter.js --- js-tasks/filter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js-tasks/filter.js b/js-tasks/filter.js index 18db5e6..9adc11d 100644 --- a/js-tasks/filter.js +++ b/js-tasks/filter.js @@ -9,7 +9,7 @@ // Аналог из lodash: http://lodash.com/docs#filter В новых браузерах у массивов есть метод filter. // --- Solution --- - +//тут надо поменять function filter(arr, fn) { let result = arr.filter(function(n){return fn(n)});