📜  列表理解 javascript 代码示例

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

代码示例1
var str =  "1234-5";
var ignore = "-";

console.log([for (i of str) if (!ignore.includes(i)) i]);