The right way to create utility functions in TypeScript
Utility functions are part of every project. You might organize them in folders called helper, lib, or shared, but their function is the same: They make sure your business logic stays consistent in your game. We’ve spent the past few months moving around and converting JavaScript to TypeScript files, including such helpers, in a GitHub…