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

Map Object transpilation #556

Open
Miteshdv opened this issue Aug 28, 2020 · 1 comment
Open

Map Object transpilation #556

Miteshdv opened this issue Aug 28, 2020 · 1 comment

Comments

@Miteshdv
Copy link

This issue is a:

  • Bug report

I am using nwb latest version

I am trying to do
const newMap = new Map({'test':1})
const arr = [...newMap]

expected to be arr = ['test']

when i do build using nwb i get arr=[new MapOperator()]

Please help

@Miteshdv
Copy link
Author

Found a work around we can use

instead of
const arr= [...newMap]

do

const arr = Array.from(newMap)

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