DEV Community

Discussion on: Should I use Arrow Function? or Regular Function? 🤔

Collapse
 
lexlohr profile image
Alex Lohr

In typescript, there is another reason to go with classic functions: if you want to overload them. Otherwise, using arrow functions is a good choice.

Collapse
 
takuyakikuchi profile image
TK • Edited

Thanks for your comment, Alex!

Great point! Let me add this point to the article 👍

TIL: TypeScript: Documentation - More on Functions #function-overloads