fac-14/CJKO-autocomplete

Mix of ES6 and ES5 in handlers file

Open

#55 opened on Jul 27, 2018

 (0 comments) (0 reactions) (1 assignee)JavaScript (1 fork)auto 404
Donegood first issueserver

Repository metrics

Stars
 (0 stars)
PR merge metrics
 (PR metrics pending)

Description

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) => {...}

Contributor guide