DEV Community

Discussion on: How would you refactor this JS function?

Collapse
 
siddharthshyniben profile image
Siddharth

To check for non-nullish I'd suggest using ??.