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

Add a flat() method for Arrays #465

Open
botic opened this issue Dec 9, 2022 · 1 comment
Open

Add a flat() method for Arrays #465

botic opened this issue Dec 9, 2022 · 1 comment

Comments

@botic
Copy link
Member

botic commented Dec 9, 2022

Since Rhino is missing [].flat(), we should provide a helper in ringo/utils/arrays. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flat

@p-bakker
Copy link

p-bakker commented Feb 9, 2023

Or consider contributing an implementation to Rhino itself: mozilla/rhino#948, mozilla/rhino#949

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants