📌  相关文章
📜  从数组中删除 null 和 undefined - Javascript 代码示例

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

代码示例4
// Removing null,undefined,0 value from array

const data = ['Abc',0,null,"Hello",undefined]

const filterData = data.filter(Boolean);

console.log(filterData)