JS, return something friendly than undefined
<p>I'm creating a dictionary object in javascript (eg associate array)</p>

<pre><code>var myobj = {
  "a" : "Some string",
  "b" : "Some string else"
}
</code></pre>

<p>if I access myobj.a, it will return "Some string"
but if I access something not in the list myobj.c it return undefined.
Is there any way to set object getter to return something like: "Key not available"
Can we use prototype...
Thanks for any help</p>
