JSFiddle - React, Tailwind, and code Playground

by Alexander Lashchevsky

HTML

<ul>
  <li>1</li>
  <li id="test">2</li>
  <li>3</li>
  <li>4</li>
</ul>

JavaScript

const test = $('#test');
const els = $('li');

$(els).each(el => {
	console.log($(el)[0] == $(test)[0]);
});