DEV Community

loading...

Discussion on: Daily Challenge #5 - Ten Minute Walk

Collapse
gnsp profile image
Ganesh Prasad
const generate = mins => isNaN(mins) || Number(mins) % 2 !== 0 ? null
    : Array(Number(mins)/2).fill('ns').join('');