Today ES6 Map syntax for for strictly needs to be on form: [key, value] of itemMap.
Following should also be valid:
[key,value] of itemMap (no space after comma)
[ key, value ] of itemMap (spaces after opening bracket and before closing bracket)
[key, value]of itemMap (no space between closing bracket and of)
Following the ES6 syntax, leaving out comma separator should also be valid:
Today ES6 Map syntax for
for
strictly needs to be on form:[key, value] of itemMap
. Following should also be valid:[key,value] of itemMap
(no space after comma)[ key, value ] of itemMap
(spaces after opening bracket and before closing bracket)[key, value]of itemMap
(no space between closing bracket andof
)Following the ES6 syntax, leaving out comma separator should also be valid:
[key value] of itemMap