📌  相关文章
📜  使用过滤器删除数组中的对象 - 无论代码示例

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

代码示例1
let someArray = [
               {name:"Kristian", lines:"2,5,10"},
               {name:"John", lines:"1,19,26,96"},
               {name:"Kristian", lines:"2,58,160"},
               {name:"Felix", lines:"1,19,26,96"}
            ];

someArray = someArray.filter(person => person.name != 'John');