github.com/outbrain/consul@v1.4.5/ui-v2/app/utils/remove-null.js (about)

     1  export default function(obj) {
     2    // non-recursive for the moment
     3    return Object.keys(obj).reduce(function(prev, item, i, arr) {
     4      if (obj[item] !== null) {
     5        prev[item] = obj[item];
     6      }
     7      return prev;
     8    }, {});
     9  }