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

137
Vistas
Limit object values of Array of objects according to model/interface?
export interface CountryInterface {
    countryNameEnglish: string;
    countryName: string;
}

let API_DATA = [{
    countryCode: "AE",
    countryName: "United Arab Emirates",
    countryNameEnglish: "United Arab Emirates",
    countryPhoneCode: "+971",
    published: true
    timeZone: "UTC+4"
}]

let countryObjectsArray: CountryInterface[] = API_DATA;

In this example, we have API_DATA of which we only need two values of the object instead of having all the unnecessary object values. But in the example above it will assign all the values. Is there any way to get this done without looping through the data array and assigning each?

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