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

150
Visualizações
getting a specific line from a csv file based on a value from that line (and not the line number) in JavaScript

my goal is very simple, i want to create a website with an input box and a send button where a user would write a name and the website will fetch the info from a csv file.

for example: suppose this is my csv file:

name,value1
roy,2
dani,3
gabe,6
nick,5

and the user input is "gabe" so I need to show a popup with "6".

the constrain is that i don't know that gabe is in line 2.

i basically need a "find" or "in" func for a csv file. keep in mind that my csv is very large, it has about 19240 rows and has 90 columns (I will try to shrink it).

i saw a solution that converted the csv file to an array in JavaScript but he was only able to access a line by its line number and i dont know in which line a specific name is saved, and i also think loading this entire table would take a while so im not sure if converting the csv to an array will be a good solution.

thanks for anyone who helps.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

If you can get it into an array then you can use find or findindex or filter functions to get the required line number

about 4 years ago · Juan Pablo Isaza Relatório
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