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