DEV Community

Discussion on: Everything new coming in ES2021

Collapse
 
lngchn profile image
Liang Chen

Another very useful one, optional chaining.

a = b?.c
// equivalent to a = b && b.c