JSFiddle - React, Tailwind, and code Playground

by ult_combo

HTML

<ul>
   <li>Happy people</li>
   <li>Sad People</li>
   <li>Angry People</li>
</ul>

JavaScript

$('li').each(function() {
    $(this).text( $(this).text().replace(/ People$/i, '') );
});