title: get values from {id:3,name:"John"} from list.js
body: <p>I made a list with listjs (listjs.com)</p>
  
  <p>Now i'm using the function get(), this wil give me this return:</p>
  
  <pre><code>itemsInList = [
      { id: 1, name: "Jonny" }
      , { id: 2, name "Gustaf" }
  ];
  listObj.get("id", 2); -&gt; return { id: 2, name: "Gustaf" }
  </code></pre>
  
  <p>Now i'm want to get the name id with pure javascript only. </p>
  
  <pre><code>function getUserName(uid) {
      var itemValues = hackerList.get("id", uid)[0];
      console.log("The name of the user is: " + itemValues.name);
      // or use alert..
      //alert("The name of the user is: " + itemValues.name);
  }
  </code></pre>
  
  <p>Sorry not concrete... I want from the return value:</p>
  
  <p><strong>{ uid: 2, name: "Marc" ... }</strong></p>
  
  <p>to <strong>itemValues.name -> Marc</strong></p>
  
  <p><strong>Udate</strong></p>
  
  <p>Forgot to use uid function ("id"). When I use values() it will work. Thank you for the answer.</p>
  
  <p>Updated Fiddle
  <a href="http://jsfiddle.net/zoutepopcorn/HKfLf/" rel="nofollow">Fiddle</a></p>