📅  最后修改于: 2022-03-11 15:01:16.456000             🧑  作者: Mango
var colors = ["red",undefined,"","blue",null,"crap"];
// remove undefined, null, "" and any other crap
var cleanColors=_.without(colors,undefined,null,"","crap");
//cleanColors is now ["red","blue"];