make a dictionary and search by property
<p>how can i make a dictionary function that returns the meaning of a word... for example</p>

<p>this is the dictionary, a simple object that has properties or words with meanings,</p>

<pre><code>var dictionary=
{
    'locomoción':
    {
        means:'Traslado de un lugar a otro.',
    }
}
</code></pre>

<p>this is the function that have to return the meaning of a word for example, i have to search for the meaning of 'locomocion', the function have to return 'Traslado de un... bla bla bla'</p>

<pre><code>exports.diccionario=function(key)
{
    //search by object property
    //if(dictionary[key] exists) returns dictionary[key].means;
}
</code></pre>
