chart
AboutMe
CodingActivity
Study 2024
초등수학
menu
FLYNNLAB
AboutMe
CodingActivity
Study 2024
초등수학
remove falsy value from object in JavaScript using lodash4
2017-08-28
javascript,
lodash
remove
falsy
value
lodash4
_.pickBy({ a: null, b: 1, c: undefined }, _.identity); // {b: 1}
Resource
https://stackoverflow.com/questions/30812765/how-to-remove-undefined-and-null-values-from-an-object-using-lodash