title: jQuery, javascript, find all unique links on page
body: <p>I'm trying do do something like this:</p>
  
  <pre><code>   var items = $("main a").unique();
     var links = [];
     items.each(function (index, value)
     {
          links.push({
              href: this.href, 
              text:  this.text
          });
     });
  </code></pre>
  
  <p>the idea is to find all links on page and remove duplicates, producing an object with href/text pairs. But the above does not work, I'm getting "TypeError: $(...).unique is not a function"</p>