📅  最后修改于: 2022-03-11 15:01:37.910000             🧑  作者: Mango
代码示例1
var obj = {1001: true, 1002: false};
var keys = Object.keys(obj);
var filtered = keys.filter(function(key) {
return obj[key]
});