If function is called with null or undefined show error, else return value
<p>I'm trying to make a function that return error or value. If argument is NULL or undefined throw error.
whats wrong with this ?:</p>

<pre><code>function get(value){
 if (value == null){
  return false;
 }
 else {
  return value;
 }
}
</code></pre>