JSFiddle - React, Tailwind, and code Playground

HTML

<div class="_42ef">
 <div class="_6a _5u5j">
  <div class="_6a _6b" style="height:36px"></div>
  <div class="_6a _5u5j _6b">
   <div class="">
    <span class="_21ok _50f5">Add your current city</span>
    <span class="img _55ym _55yn _55yo _5tqs _3-9a" aria-label="Loading..." aria-busy="1"></span>
   </div>
  </div>
 </div>
</div>

JavaScript

var texts = [];

//Look in all elements of your root and specify each filter criteria separately
$('._42ef').find('*').not('span, ._21ok, ._50f5').each(function() {
    
    //Only get immediate text
    var directText = $(this).clone()
                            .children()
                            .remove()
                            .end()
                            .text().trim();
    
    //Only add if text has soem kind of value
    if (directText) texts.push(directText);
});

alert(texts);