SyntaxFix
Write A Post
Hire A Developer
Questions
Taking in account that undefined == null we can write as follows:
undefined == null
let collection = { a: undefined, b: 2, c: 4, d: null, } console.log(_.omit(collection, it => it == null)) // -> { b: 2, c: 4 }
JSBin example