loading...

re: Daily Challenge #50 - Number Neighbor VIEW POST

FULL DISCUSSION
 

So... something like this?

const neighbours = str => [ (parseInt(str) + 1).toString(), parseInt(str) - 1).toString() ]
Code of Conduct Report abuse