diff options
author | Naoki Kishi <me@p1ass.com> | 2022-01-18 23:45:17 +0900 |
---|---|---|
committer | Masahiro FUJIMOTO <mfujimot@gmail.com> | 2022-01-20 00:25:37 +0900 |
commit | 9798ab0ae70c2447cd0bf5d664fd1da851abe994 (patch) | |
tree | 65b4c7399c0ab8c55887e559e06a291440df70b1 /files | |
parent | 621c2f2290910d7f24d107aa415655c9779873a3 (diff) | |
download | translated-content-9798ab0ae70c2447cd0bf5d664fd1da851abe994.tar.gz translated-content-9798ab0ae70c2447cd0bf5d664fd1da851abe994.tar.bz2 translated-content-9798ab0ae70c2447cd0bf5d664fd1da851abe994.zip |
fix variable name to match the original
original: https://github.com/mdn/content/blob/260094b613de640ff7eff377ffb0a0ef072016eb/files/en-us/web/javascript/reference/global_objects/array/reduce/index.md?plain=1#L425-L428
Diffstat (limited to 'files')
-rw-r--r-- | files/ja/web/javascript/reference/global_objects/array/reduce/index.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/ja/web/javascript/reference/global_objects/array/reduce/index.md b/files/ja/web/javascript/reference/global_objects/array/reduce/index.md index 86a45268bf..ec1f646903 100644 --- a/files/ja/web/javascript/reference/global_objects/array/reduce/index.md +++ b/files/ja/web/javascript/reference/global_objects/array/reduce/index.md @@ -411,7 +411,7 @@ let allbooks = friends.reduce(function(previousValue, currentValue) { ### 配列内の重複要素を除去する -> **Note:** {{jsxref("Set")}} と {{jsxref("Array.from()")}} に対応している環境を使っている場合は、`let orderedArray = Array.from(new Set(myArray))` を使うことで重複要素を除去された配列を取得することができます。 +> **Note:** {{jsxref("Set")}} と {{jsxref("Array.from()")}} に対応している環境を使っている場合は、`let arrayWithNoDuplicates = Array.from(new Set(myArray))` を使うことで重複要素を除去された配列を取得することができます。 ```js let myArray = ['a', 'b', 'a', 'b', 'c', 'e', 'e', 'c', 'd', 'd', 'd', 'd'] |