/ javascript

remove falsy value from object in JavaScript using lodash4

remove falsy value

lodash4

_.pickBy({ a: null, b: 1, c: undefined }, _.identity);

// {b: 1}

Resource