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

TypeError: flat is not a function #275

Open
savissimo opened this issue Jun 6, 2022 · 2 comments
Open

TypeError: flat is not a function #275

savissimo opened this issue Jun 6, 2022 · 2 comments

Comments

@savissimo
Copy link
Contributor

If I try to run [ 1, 2, [ 3, 4 ] ].flat(), I get JSException: TypeError: [1, 2, [3, 4]].flat is not a function.

flat is a standard function of arrays. I haven't tested extensively for other array functions, but I can confirm that find, filter and map all work.

@savissimo
Copy link
Contributor Author

Probably only loosely-related: it seems that reduce and some don't work as expected. I'll try to isolate some tests.

@savissimo
Copy link
Contributor Author

Probably only loosely-related: it seems that reduce and some don't work as expected. I'll try to isolate some tests.

Forget that. It seems that my other problem was caused by passing a complex object into JavaScript. I'll open a separate issue for that.

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

No branches or pull requests

1 participant