There is a much better way to default parameters in JS:532Seth WatkinsRichard D JonesFollowAug 31, 2018 · 1 min read+1 for unit testability