toString(8)
var getLengthBase8 = function(){
return [].slice.call(arguments,1).map(n=>{
let res = 1; for(let i = 1 ; i <= n; i++){
res*=i;
}
return res.toString(8).length;
})
}
var getLengthBase8 = function(){
return [].slice.call(arguments,1).map(n=>{
let res = 1; for(let i = 1 ; i <= n; i++){
res*=i;
}
return res.toString(8).length;
})
}
相关推荐