Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 324 Bytes

challenge-18.md

File metadata and controls

15 lines (11 loc) · 324 Bytes

Reto 18: ¡Nos quedamos sin tinta

🔗 Enunciado

Solución

function dryNumber(dry, numbers) {
  return Array.from({ length: numbers }, (_, i) => i)
    .filter((number) => `${number + 1}`.includes(dry))
    .map((number) => number + 1)
}

🚀 200 puntos