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

[Feature]: forEachRight #298

Closed
1 of 2 tasks
ssi02014 opened this issue Jul 3, 2024 · 2 comments · Fixed by #329
Closed
1 of 2 tasks

[Feature]: forEachRight #298

ssi02014 opened this issue Jul 3, 2024 · 2 comments · Fixed by #329
Assignees
Labels
feature 새로운 기능 추가 @modern-kit/utils @modern-kit/utils

Comments

@ssi02014
Copy link
Contributor

ssi02014 commented Jul 3, 2024

Package Scope

  • 기존 패키지에 기능 추가
  • 새로운 패키지
  • Package name: @modern-kit/utils/array

Overview

기존 forEach와 다르게 오른쪽에서 부터 순회하면서 callback을 호출하는 함수입니다.

forEachRight([1, 2, 3], (el, index) => {
  console.log(el, index);
});
/* 
  3 2
  2 1
  1 0
*/
@ssi02014 ssi02014 added feature 새로운 기능 추가 @modern-kit/utils @modern-kit/utils labels Jul 3, 2024
@Gaic4o
Copy link
Contributor

Gaic4o commented Jul 8, 2024

이번에도 제가 forEachRight 유틸 함수 구현 해 봐도 괜찮을까요?!

@ssi02014
Copy link
Contributor Author

ssi02014 commented Jul 8, 2024

@Gaic4o 그럼요!! 감사합니다🤗

@ssi02014 ssi02014 linked a pull request Jul 14, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 새로운 기능 추가 @modern-kit/utils @modern-kit/utils
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants