📌  相关文章
📜  字符串缩减 javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:21.287000             🧑  作者: Mango

代码示例2
let str = "hello";
// reduce string to the sum of the ascii codes of its characters
str.split().reduce((a,b) => a + b.charCodeAt(0), 0);