title: How do I refer to "this" inside filter function of querySelectorAll?
body: <p>I have Cheerio code that looks like this:</p>
  <pre><code>const title = $(&quot;meta&quot;)
              .filter(function () {
                return (
                  ($(this).attr(&quot;property&quot;) != null &amp;&amp;
                    $(this).attr(&quot;property&quot;).endsWith(&quot;title&quot;)) ||
                );
              }).attr(&quot;content&quot;)
  </code></pre>
  <p>I want to migrate this to puppeteer, which uses client-side javascript. I have this so far:</p>
  <pre><code>const title = Array.from(document.querySelectorAll(&quot;meta&quot;)
              .filter(function () {
                return {
                // stuck here: how do I call this?
                // $(this)
  </code></pre>
  <p>I am stuck on how to refer to &quot;this&quot; using document query selector syntax.</p>