aboutsummaryrefslogtreecommitdiff
path: root/files/ru/web/javascript/reference
diff options
context:
space:
mode:
authorMykyta Ivanchenko <NikIvan@users.noreply.github.com>2021-10-30 19:24:33 +0300
committerGitHub <noreply@github.com>2021-10-30 19:24:33 +0300
commit3df90169560d90609d0628aad2ff8a8d73c368f3 (patch)
tree7b61f1776b28f22a10f55482fe09753db8626e14 /files/ru/web/javascript/reference
parentf886bcc980f6a0b9596f7e272a0580e5176e061d (diff)
downloadtranslated-content-3df90169560d90609d0628aad2ff8a8d73c368f3.tar.gz
translated-content-3df90169560d90609d0628aad2ff8a8d73c368f3.tar.bz2
translated-content-3df90169560d90609d0628aad2ff8a8d73c368f3.zip
(ru) Update code examples according to EN version (#2919)
Diffstat (limited to 'files/ru/web/javascript/reference')
-rw-r--r--files/ru/web/javascript/reference/global_objects/array/filter/index.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/files/ru/web/javascript/reference/global_objects/array/filter/index.md b/files/ru/web/javascript/reference/global_objects/array/filter/index.md
index 94bc6b25cf..b45dde40b5 100644
--- a/files/ru/web/javascript/reference/global_objects/array/filter/index.md
+++ b/files/ru/web/javascript/reference/global_objects/array/filter/index.md
@@ -179,8 +179,8 @@ const filterItems = (arr, query) => {
return arr.filter(el => el.toLowerCase().indexOf(query.toLowerCase()) !== -1)
}
-console.log(filterItems('ap')); // ['apple', 'grapes']
-console.log(filterItems('an')); // ['banana', 'mango', 'orange']
+console.log(filterItems(fruits, 'ap')); // ['apple', 'grapes']
+console.log(filterItems(fruits, 'an')); // ['banana', 'mango', 'orange']
```
### Модификация изначального массива (изменение, добавление и удаление)