Skip to content
This repository has been archived by the owner on Feb 15, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant