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

224
Vistas
How can access a object property value from Objects contains array of objects in Js

i got ane object contains array of objects.

Object {
  "isLoadingAPI": true,
  "orgAPIData": Array [
    Object {
      "color1": "#009fe8",
      "color2": "#9c3ab4",
      "color3": "#0bb694",
      "face": true,
      "fingerprint": "true",
      "id": 1234,
      "messageLimit": 10,
      "name": " הטסטים משרד",
      "visible": true,
    },
    Object {
      "color1": "#009fe8",
      "color2": "#9c3ab4",
      "color3": "#0bb694",
      "face": true,
      "fingerprint": "true",
      "id": 3245,
      "messageLimit": 15,
      "name": "טסט",
      "visible": false,
    },
    Object {
      "color1": "#009fe8",
      "color2": "#9c3ab4",
      "color3": "#0bb694",
      "face": false,
      "fingerprint": "false",
      "id": 333,
      "messageLimit": 10,
      "name": " התחבורה משרד ",
      "visible": true,
    },
    Object {
      "color1": "#009fe8",
      "color2": "#9c3ab4",
      "color3": "#0bb694",
      "face": true,
      "fingerprint": "false",
      "id": 9112,
      "messageLimit": 10,
      "name": "פלאריום",
      "visible": true,
    },
    Object {
      "color1": "#009fe8",
      "color2": "#9c3ab4",
      "color3": "#0bb694",
      "face": false,
      "fingerprint": "true",
      "id": 1008,
      "messageLimit": 10,
      "name": "ספיאנס",
      "visible": true,
    },
  ],
}

So here i want to access all "messageLimit" value from above list.

i want to store values in a global variable.

lets say if i am going to console that variable i should get only the values (10,15,10...) like this.

How can i achieve this?

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

0

You can achive this by Arrays map method.

The arrays map method takes a function as parameter and what ever this function returns will be returned in your results.

So it can be like this.

  var messageLimits = object.orgAPIData.map(oapi=>oapi.messageLimit)
about 4 years ago · Juan Pablo Isaza Denunciar

0

You can use map function:

const messageLimits = object.orgAPIData.map(apiData => apiData.messageLimit);
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