Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

132
Views
¿Limitar los valores de objeto de la matriz de objetos según el modelo/interfaz?
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;

En este ejemplo, tenemos API_DATA de los cuales solo necesitamos dos valores del objeto en lugar de tener todos los valores de objeto innecesarios. Pero en el ejemplo anterior asignará todos los valores. ¿Hay alguna forma de hacer esto sin recorrer la matriz de datos y asignar cada uno?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!