title: check if a javascript function is exist or is defind
body: <p>I want to know whether a function is exist or is defined before i call it.</p>
  
  <p>I have this line of code:</p>
  
  <pre><code>function renderView(){
   // some code
  }
  </code></pre>