📜  没有假键的 js 对象 - Javascript 代码示例

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

代码示例4
const person = { "name":"bill", "age":21, "sex":undefined, "height":null, "hidden":false };
//remove falsy values
const cleanPerson = _.pickBy(person);
//cleanPerson is now { "name":"bill", "age":21 }