DEV Community

Discussion on: 17 Javascript optimization tips to know in 2021 🚀

Collapse
pitops profile image
Petros Kyriakou

Good list but please don't use this

(!func) && throw new Error('Invalid value ' + type); func();

it's unreadable when you scan the code