Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

152
Vistas
How do I get total number of columns received in RestAPI response?

Example Response From RestAPI

This Is How My Current Parameter Input Looks Like:

value={data?.body?.marketState}

I want to return no. of columns in "marketState".

eg.

4
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You can simply access the .length property on the array

value={data?.body?.marketState?.length}

For more info about .length:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/length

For more information about JavaScript arrays in general:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda