title: How to Determine if ::before is applied to an element?
body: <p>I have this simple html code. I need to be able to determine if the ::before is being applied to .icon-player-flash</p>
  
  <pre><code>    &lt;div id="TestSwitch"&gt;
  
          &lt;i class="icon-player-html5"&gt;&lt;/i&gt;
  
          &lt;i class="icon-player-none"&gt;&lt;/i&gt;
  
          &lt;i class="icon-player-flash"&gt;&lt;/i&gt;
  
      &lt;/div&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/kcVJL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kcVJL.png" alt="enter image description here"></a></p>
  
  <p>I thought this would work but it's always returning 0 for the length.</p>
  
  <pre><code>var flashplayer = $(".icon-player-flash:before");
  console.log("count: " + flashplayer.length);
  </code></pre>
  
  <p>What am I missing?</p>