const TidyNumber=n=>String(n).split('').every((el,i,arr)=>i===arr.length-1||el<=arr[i+1]) document.write(TidyNumber(123))