A package for SHALLOW removing of properties from an object or selecting properties from an object and creating a new object out of the result.
yarn add object-without-props
or npm i object-without-props
import objectWithoutProps, {objectWithProps} from 'object-without-props'
const objectA = {foo: 'bar', bar: 'baz', baz: 'boz'}
const objectB = {foo: null}
const objectC = ['bar']
objectWithoutProps(objectA, objectB, objectC)
// {baz: 'boz'}
objectWithProps(objectA, objectB, objectC)
// {foo: 'bar', bar: 'baz'}