`reduce` 求乘积
return arr.reduce((x,y) => x*y)
string2int
return s.split('').map(x => x*1).reduce((x,y) => x*10 + y)
arr.map(s => s[0].toUpperCase() + s.slice(1).toLowerCase())
Sign in to make a reply
梨花菜
`reduce` 求乘积
string2int
首字母大写