title: Find item by key in Javascript
body: <p>Quick rookie question please.</p>
  
  <p>Suppose I have a javsacript object like so: </p>
  
  <pre><code>var meh=[["cars",27], ["bikes",85], ["skates",4]];
  </code></pre>
  
  <p>To go through each data object here, I can do this: </p>
  
  <pre><code>$.each(meh, function(index,value){        
      console.log(value) //returns ["cars",27] etc..
   });
  </code></pre>
  
  <p>And considering I know the place of, say, cars, I can do this to access it: </p>
  
  <pre><code>console.log(meh[0][0]) //shows "Cars"
  </code></pre>
  
  <p>and of course, if I want the value of cars, I need to do this: </p>
  
  <pre><code>console.log(meh[0][1]) //Shows 27
  </code></pre>
  
  <p>Now, I have the string - Keys, like <code>cars</code>, <code>bikes</code> or <code>skates</code></p>
  
  <p>But I cant figure out this: How do I access their respective values? </p>
  
  <p><code>meh["cars"]</code> is returning undefined, since, as I understand, it cant find a description outside each object.</p>
  
  <p>I can do <code>meh[0]["cars"]</code> but it defeats the point as the position of cars might change.</p>
  
  <p>How do I access a value of something with their key please?</p>
  
  <p>thanks.</p>