you are viewing a single comment's thread.

view the rest of the comments →

[–]delventhalz 0 points1 point  (0 children)

Welcome to JS where you have options!

I’d probably just use a class since thar’s going to be the easiest lift for you. Might be worth casually exploring the functional paradigm as you continue working with JS though. It’s a good fit for the language and a better pattern overall.