📌  相关文章
📜  从匹配的数组中删除所有 - Javascript代码示例

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

代码示例1
var array = [1,2,'deleted',4,5,'deleted',6,7];
var newarr = array.filter(function(a){return a !== 'deleted'})