Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 373 Bytes

challenge-13.md

File metadata and controls

20 lines (16 loc) · 373 Bytes

Reto 13: Backup de los archivos de Papa Noel

🔗 Enunciado

Solución

function getFilesToBackup(lastBackup, changes) {
  return [
    ...new Set(
      changes
        .filter((change) => change[1] > lastBackup)
        .map((file) => file[0])
        .sort((a, b) => a - b)
    )
  ]
}

🚀 300 puntos