百日算法 花君 2018-08-14 265 阅读1分钟 ```function accum(s) { return s.split('').map((c, i) => (c.toUpperCase() + c.toLowerCase().repeat(i))).join('-')}```