mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 05:23:04 +00:00
10 lines
224 B
JavaScript
10 lines
224 B
JavaScript
export default function(obj) {
|
|
// non-recursive for the moment
|
|
return Object.keys(obj).reduce(function(prev, item, i, arr) {
|
|
if (obj[item] !== null) {
|
|
prev[item] = obj[item];
|
|
}
|
|
return prev;
|
|
}, {});
|
|
}
|