is this valid js argument?
<p>I am not sure I am writing valid javascript argument or not. </p>

<pre><code>function localData(){

    this.setInfo(key, value) =  
            function(){
                localStorage.setItem(key, value);
            };
}
</code></pre>

<p>how can I post key, value params in setInfo(key, value) to function(){}? <br> 
is there any way to achieve that?</p>
