Javascript overloading dot
<p>Hi is there a way to overload the '.'(dot) and [] operator in javascript. ie if I say obj.Name  or obj['Name'] it should call a common method in the obj class by passing Name as argument. The similar kind of functionality available in python using property method. But here I want the ".Name" to be passed as argument to the common method.</p>

<p>like this..</p>

<pre><code>function Data(){
    this.getValue(name){
        return '...'
    }
}

data = new Data()
name = data.Name 
name = data['Name']
//both should call data.getValue()
</code></pre>
