Skip to content
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

feat(forEachRight): add forEachRight #119

Merged
merged 7 commits into from
Jul 3, 2024
Merged
Prev Previous commit
Next Next commit
Update docs/ko/reference/array/forEachRight.md
  • Loading branch information
raon0211 authored Jul 3, 2024
commit 46f821f539a616f4f2ee0dd1bcbde3a9f36d2517
6 changes: 3 additions & 3 deletions docs/ko/reference/array/forEachRight.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ const array = [1, 2, 3];
const result: number[] = [];

// forEachRight 함수를 사용하여 배열을 순회하며 각 요소를 결과 배열에 추가해요.
forEachRight(array, (value) => {
result.push(value);
})
forEachRight(array, (value) => {
result.push(value);
});

console.log(result) // Output: [3, 2, 1];
```