- Use Array.includes for Multiple Criteria
- Less Nesting, Return Early
- Use Default Function Parameters and Destructuring
- Favor Map / Object Literal than Switch Statement
- Use Array.every & Array.some for All / Partial Criteria
As usual. please read the full article👇in scotch.io, code samples provided (free of course, with better syntax highlight).