title: How to find last item in a .each()?
body: <p>I am running the following but I get </p>
  
  <blockquote>
    <p>(index):58 Uncaught TypeError: jQuery.last is not a function</p>
  </blockquote>
  
  <pre><code>var myId; 
   jQuery.getJSON("https://en.wikipedia.org/w/api.php?action=query&amp;list=embeddedin&amp;eilimit=500&amp;eititle=Template:Infobox&amp;callback=?", {
      disablelimitreport: true,
      format: "json"
    }, function(data) {
      jQuery.each(data.query.embeddedin, function(i, item) {
      var $this = $(this);
      if($this[0] === jQuery.last()[0]) {
         var myId = item.pageid;
      }
      console.log(myId);
      });
    });
  </code></pre>
  
  <p><a href="https://jsfiddle.net/zt3ssajd/309/" rel="nofollow noreferrer">JsFidlle</a>  see console</p>