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

Support for flatten #137

Closed
ssi02014 opened this issue Jul 8, 2024 · 0 comments · Fixed by #147
Closed

Support for flatten #137

ssi02014 opened this issue Jul 8, 2024 · 0 comments · Fixed by #147

Comments

@ssi02014
Copy link
Contributor

ssi02014 commented Jul 8, 2024

Work with flatten as discussed in the issue above.

Implement the same function as lodash's flattenDepth under the name flatten(arr, depth).

It should allow the same type inference as Array.prototype.flat.

flatten should perform better than Array.prototype.flat and lodash's flattenDepth.

@ssi02014 ssi02014 changed the title Support for flatten Support for flatten Jul 8, 2024
ssi02014 added a commit to ssi02014/es-toolkit that referenced this issue Jul 9, 2024
ssi02014 added a commit to ssi02014/es-toolkit that referenced this issue Jul 9, 2024
ssi02014 added a commit to ssi02014/es-toolkit that referenced this issue Jul 9, 2024
raon0211 added a commit that referenced this issue Jul 10, 2024
* feat(flatten): add faltten (#137)

* fix: fix lint

* fix: fix test code description

* test(flatten): add test case

* Update docs/ko/reference/array/flatten.md

* Update docs/ko/reference/array/flatten.md

* Update docs/ko/reference/array/flatten.md

* Update docs/reference/array/flatten.md

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant