loading...

re: Daily Challenge #50 - Number Neighbor VIEW POST

FULL DISCUSSION
 
const neighborNumbers = number => [`${Number(number)-1}`, `${Number(number)+1}`];

neighborsNumbers("5555555555") // ["5555555554", "5555555556"]
code of conduct - report abuse