fac-14/CJKO-autocomplete

Mix of ES6 and ES5 in handlers file

Aperta

#55 aperta il 27 lug 2018

 (0 commenti) (0 reazioni) (1 assegnatario)JavaScript (1 fork)auto 404
Donegood first issueserver

Metriche repository

Star
 (0 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

https://github.com/fac-14/CJKO-autocomplete/blob/2d7b151d528a65d0b7e0e335bac001633e5a5dcf/src/handlers.js#L6

As the best practice it's good to stick to one. If you want to use const, write your functions also as arrow functions like this: const mainHandler = (request, response) => {...}

Guida contributor