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

110
Visualizações
Looping through a block and finding the value

I am new to javascript and I am having a difficulty in looping through a set of objects and arrays to find the right value that matches. Please refer the example below.

[
    {
        "C02G6A8HLJE": [
            {
                "reply_users": [ ],
                "reply_users_count": 0,
                "reply_count": 0,
                "ts": "1652781270.572469",
                "channel_name": "n8n-stage-test",
                "team_id": "T032648LE",
                "share_user_id": "U02BUBQ4C2H"
            }
        ]
    }
]

In the above set block the "C02G6A8HLJE" is not a constant value, meaning, every-time this values changes. Now what I want to do is to get the "ts" value inside this block. How can I achieve that. I tired for.each and other map functions which but I am ending up in errors.

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