题解 | #整数反转#
整数反转
https://www.nowcoder.com/practice/eceaa68482354edf9c3409c5b3e942b9
function _reverse(number) { // 补全代码 if(number>=0){ let arr = number.toString().split(""); return Number(arr.reverse().join("")); }else{ let arr = Math.abs(number).toString().split(""); return -Number(arr.reverse().join("")); } }