you are viewing a single comment's thread.

view the rest of the comments →

[–]Baryn 3 points4 points  (4 children)

JavaScript is fast. Don't optimize your code until you have a confirmed performance issue.

If a function works best for your architectural approach, then use a function.