I am using library Lodash and I need from my javascript object remove just possible undefined properties, but I want keep null properties.
for example if I would have object like this:
var fooObject = {propA:undefined, propB:null, propC:'fooo'};
I expect output like this:
{propB:null, propC:'fooo'}
I tried this:
.pickBy(fooObject, _.identity);
but it remove also null values. Does Lodash contain some function for that? Thanks.