Skip to content

Latest commit

 

History

History
45 lines (42 loc) · 1.1 KB

File metadata and controls

45 lines (42 loc) · 1.1 KB

Encontrar al mas viejo

Dado un array de objetos representando datos sobre desarrolladores que se anotaron a una meetup, escribir una función que devuelva una lista con el desarrollador con más edad. En caso de que haya más de uno compartiendo el podio, devolver todos los elementos que lo compartan en el array.

const desarrolladores = [
  {
    firstName: "Gabriel",
    lastName: "X.",
    country: "Monaco",
    continent: "Europe",
    age: 49,
    language: "PHP",
  },
  {
    firstName: "Odval",
    lastName: "F.",
    country: "Mongolia",
    continent: "Asia",
    age: 38,
    language: "Python",
  },
  {
    firstName: "Emilija",
    lastName: "S.",
    country: "Lithuania",
    continent: "Europe",
    age: 19,
    language: "Python",
  },
  {
    firstName: "Sou",
    lastName: "B.",
    country: "Japan",
    continent: "Asia",
    age: 49,
    language: "PHP",
  },
];

/* [
  { firstName: 'Gabriel', lastName: 'X.', country: 'Monaco', continent: 'Europe', age: 49, language: 'PHP' },
  { firstName: 'Sou', lastName: 'B.', country: 'Japan', continent: 'Asia', age: 49, language: 'PHP' },
] */