🌈 搜索
📅  最后修改于: 2022-03-11 15:03:07.077000             🧑  作者: Mango
const filteredArray = [1, null, undefined, 2].filter(Boolean)