title: Javascript/Jquery-How to check if a function returns any value at all?
body: <p>Is there a way to check if a function returns ANY value at all.
  So for example:</p>
  
  <pre><code>if(loop(value) --returns a value--) { 
      //do something
  }
  
  function loop(param) {
      if (param == 'string') {
          return 'anything';
      }
  }
  </code></pre>