title: Cheerio - Find and print all attributes that match query
body: <p>If I have the following html code:</p>
  
  <pre><code>&lt;a class="my-lovely-name" title="hello" href="fb.com"&gt;Random stuff&lt;/a&gt;
  &lt;div class="my-lovel-name" title="ew" href="yb.com"&gt;blabla&lt;/div&gt;
  </code></pre>
  
  <p>How can I extract all the values of <code>title</code> and <code>href</code> using cheerio? I tried the following but it would only extracts <code>hello</code> and <code>fb.com</code> and skips the remaining elements:</p>
  
  <pre><code>console.log($('.my-lovely-name').attr('title')) =&gt; should print the titles of all elements with this class
  console.log($('.my-lovely-name').attr('href')) =&gt; =&gt; should print the href-s of all elements with this class
  </code></pre>