title: How to fetch names from an object?
body: <p>I want output as:</p>
  <blockquote>
  <p>for checkBasket(amazonBasket, amazonBasket.floss) =&gt; floss is in your
  basket</p>
  </blockquote>
  <pre><code>amazonBasket = {
    glasses: 1,
    books: 2,
    floss: 100
  }
  
  function checkBasket(basket, lookingFor) {
    for (item in basket) {
      if (item.name === lookingFor.name) {
        return `${lookingFor} is in your basket`
      }
    }
    return 'that does not exist in your basket'
  }
  </code></pre>