What's the benefit of this...
class Utils {
static doSomething() {
return 'something'
}
static doAnother() {
return 'another'
}
}
versus this...
const Utils {
doSomething: () => 'something',
doAnother: () => 'another',
}
Assuming Utils is never meant to be instantiated (it's just going to be a collection of methods), is there a reason to use one or the other?