object-without-props
v0.1.2objectWithoutProps + objectWithProps
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.
Installation
yarn add object-without-props
or npm i object-without-props
Usage
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'}
npm i object-without-props
Source Code
github.com/jaredlunde/object...Metadata
- MIT
- Whatever
- Jared Lunde
- released 8/18/2018