Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

139
Visualizações
this function works in chrome and Firefox but does not in safari

I have the following function in my app. It works correctly in the other browsers but does not function in safari.

  function left(event){
        let i = document.getElementById("symb").innerText;
        let x = oldArray.find(e => e.symbol == i);
        let index = oldArray.indexOf(x);
        alert(i)
        if (index != 0){
            loadPage(oldArray[index - 1].id)
        }else{
            loadPage(oldArray[oldArray.length - 1].id)
        }
     }

variable i comes thru correctly but the find portion returns undefined for x.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda