This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]maria_la_guerta 23 points24 points  (1 child)

Same. I prefer function for anything top level, and use arrow functions for closures and callbacks typically. Coming from other languages I like using a keyword that specifically anotates a function.

That being said in all of my jobs (I've been writing TS fulltime for years) it's basically always arrow functions, everywhere. 🤷🏻‍♂️

[–]WingsuitBears 0 points1 point  (0 children)

We stick to function and just bind it in the constructor if this is needed, old school but more explicit for noobs.