Refactoring
Strategies
- Return early from functions
- Cache variables so functions can be read like sentences
- Check for web api’s before implementing functionality
- get code right the first time
https://dev.to/healeycodes/refactoring-javascript-for-performance-and-readability-with-examples-1hec
Home