FACG5 / asi-autocomplete

http://asi-auto.herokuapp.com/
0 stars 0 forks source link

Nice to use destructuring assignment but.. #17

Open ashatat opened 6 years ago

ashatat commented 6 years ago

https://github.com/FACG5/asi-autocomplete/blob/0f66d3d22af5ace2719bc050d614ef64b13e0c47/src/router.js#L1-L9

I really liked that you use destructuring variables but if I were you I'd use most of the ES6 features such as const & arrow function

const { 
   serverStaticFile, 
   handelhomepage, 
   autocomplete, 
   handelError, 
   writeFile 
 } = require("./functions.js") 

const router = (req, res) => {