0

While making a code review of some npm package I've noticed this pattern:

const start = function start() {
   ...code
}

I was wondering what this pattern could be useful for. Does anybody know?

Wouldn't be just fine to assign const in this way:

const start = function() { ... code }

teddyS
  • 81
  • 1
  • 8

0 Answers0