📅  最后修改于: 2022-03-11 15:04:33.562000             🧑  作者: Mango
// filter(Boolean) - will remove null, false, NaN, undefined, or the empty string,
//the resulting Boolean will be false
var srcArr1 = srcArr.filter(Boolean);