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

Use Array.flat instead of array-flatten #5677

Open
wants to merge 1 commit into
base: 5.x
Choose a base branch
from

Conversation

almic
Copy link

@almic almic commented May 20, 2024

Depends upon #5595, Adopt Node@18 as minimum supported version.

With this new version, we get Array.flat(depth), which can be used instead of a package. Infinity would have the same behavior as the package, recursively unwrapping nested arrays indefinitely. But, perhaps it might be worth selecting a more reasonable value, to avoid a RangeError, such as when an array contains a reference to itself.

Note

Mimimum Node.js version supported is 11

@wesleytodd
Copy link
Member

This is going to fail CI for now, but I figured it was better to approve the CI run for reference. I think this is a good change, but we have a bunch on our plate first so please be patient with us as we get the other things done first.

@admsev

This comment was marked as spam.

@gooroodev

This comment was marked as spam.

@mmaazahmed

This comment was marked as off-topic.

@krzysdz

This comment was marked as off-topic.

@mmaazahmed

This comment was marked as off-topic.

@wesleytodd

This comment was marked as off-topic.

@jonchurch jonchurch requested a review from a team June 10, 2024 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants