-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update(JS): web/javascript/reference/global_objects/array/reduce/index.md #322
Conversation
files/uk/web/javascript/reference/global_objects/array/reduce/index.md
Outdated
Show resolved
Hide resolved
files/uk/web/javascript/reference/global_objects/array/reduce/index.md
Outdated
Show resolved
Hide resolved
files/uk/web/javascript/reference/global_objects/array/reduce/index.md
Outdated
Show resolved
Hide resolved
files/uk/web/javascript/reference/global_objects/array/reduce/index.md
Outdated
Show resolved
Hide resolved
files/uk/web/javascript/reference/global_objects/array/reduce/index.md
Outdated
Show resolved
Hide resolved
files/uk/web/javascript/reference/global_objects/array/reduce/index.md
Outdated
Show resolved
Hide resolved
files/uk/web/javascript/reference/global_objects/array/reduce/index.md
Outdated
Show resolved
Hide resolved
|
||
```js | ||
const getMax = (a, b) => Math.max(a, b); | ||
|
||
// функція зворотного виклику виконується на кожному елементі масиву, починаючи з 0 | ||
[1, 100].reduce(getMax, 50); // 100 | ||
[ 50].reduce(getMax, 10); // 50 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ну типу ок, але 😢
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
В мене маркдаунлінт чомусь таке ріже
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
треба глянути, може і в мене ріже...
files/uk/web/javascript/reference/global_objects/array/reduce/index.md
Outdated
Show resolved
Hide resolved
files/uk/web/javascript/reference/global_objects/array/reduce/index.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Декілька зауважень
…index.md Co-authored-by: Mykola Myslovskyi <[email protected]>
Co-authored-by: Mykola Myslovskyi <[email protected]>
Original content: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce
Changes: