nwb icon indicating copy to clipboard operation
nwb copied to clipboard

Map Object transpilation

Open Miteshdv opened this issue 4 years ago • 1 comments

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 avatar Aug 28 '20 13:08 Miteshdv

Found a work around we can use

instead of const arr= [...newMap]

do

const arr = Array.from(newMap)

Miteshdv avatar Aug 28 '20 14:08 Miteshdv