📜  遍历字符串打字稿代码示例

📅  最后修改于: 2022-03-11 14:48:20.006000             🧑  作者: Mango

代码示例1
const str = "Hello Grepper!";
const chars = [...str];
chars.forEach((c, i) => console.log(c, i));