omit-nil

Creates an object composed of the own and inherited enumerable string keyed properties of object that doesn't null or undefined.

Browse on unpkg