FACK1 / languages-search

languages-search
0 stars 1 forks source link

Separation of concern #23

Closed ghassanmas closed 5 years ago

ghassanmas commented 5 years ago

The following snippet of code should be wrapped in a pure fuction that is testable, it's also recommended if the function is written on the server-side instead of the server responding with the whole file.

https://github.com/FACK1/languages-search/blob/c06fbcc40169728ad2f2ad482483f182ac6a95fa/public/main.js#L9-L21

mattlub commented 5 years ago

👍 for using startsWith