DEV Community

Discussion on: JS 2019 features I am excited about

Collapse
 
jacobmgevans profile image
Jacob Evans

How are you feeling about the optional chaining and null coalescing operator.

I am super excited about those moving up in stages as well. :)

with flat, I am looking forward to .flatMap() as well.

Collapse
 
hozefaj profile image
Hozefa • Edited

flatMap() might be useful. In most cases I rather feel I would chain map() followed by flat() to keep the logic in map separate from flattening the array.