DEV Community

Discussion on: Some Things About JSON That You May Have Missed

Collapse
aumayeung profile image
John Au-Yeung Author

I think ternary operator shouldn't be nested. It's harder to read than if or switch like you said.