title: Function definition on one line
body: <p>If we have a function that contains one short statement, what reasons may we consider against putting the function definition on one line?</p>
  
  <pre><code>function addTwo(x,y){ return x + y; }
  </code></pre>
  
  <p>vs</p>
  
  <pre><code>function addTwo(x,y){
      return x + y;
  }
  </code></pre>
  
  <p>The reason I'm asking is that I have scripts with ~100 function definitions, many of which could be one-liners. However, I have doubts whether mixing them with multiline functions will eventually decrease readability.<br>
  Reading JS code, I usually see short functions (that would fit well in one line) written on multiple lines, but I have never seen a reason against one-liners.<br>
  So, my question addresses those who in such a situation considered using one-liners, and eventually settled for or against it, for a good reason.</p>