📅  最后修改于: 2022-03-11 14:58:04.910000             🧑  作者: Mango
const expandedForm = n => n.toString()
.split("")
.reverse()
.map( (a, i) => a * Math.pow(10, i))
.filter(a => a > 0)
.reverse()
.join(" + ");