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

146
Vistas
How do i add another Injury status there is more than one
data = data.map(
  ({
    PlayerID,
    Status,
    TeamID,
    Jersey,
    PositionCategory,
    Height,
    Weight,
    BirthDate,
    College,
    PhotoUrl,
    Experience,
    FanDuelPlayerID,
    DraftKingsPlayerID,
    FanDuelName,
    DraftKingsName,
    ...rest
  }) => rest
);



let eastern = data.filter((item) => item.InjuryStatus === "Out");
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I will make an assumption on this question. "You want to return an array with players that have more than one InjuryStatus, such as if the status is "Out" or the status is "Pending" "

Since you are using javascript as your language, there are a few ways to write this. I will go with the most direct way. I will use a simple boolean expression in the condition.

Using your statement, this would look like this:

let eastern = data.filter((item) => (item.InjuryStatus === "Out" || item.InjuryStatus === "Pending"));
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