This package has been deprecated

Author message:

Unmaintained

remove-object-properties

1.0.0 • Public • Published

remove-object-properties

Remove mulitple properties from an object without modifying the original



Built with ❤︎ by Tiaan and contributors

Table of Contents

Table of Contents
  • Install
  • Usage
  • Contribute
  • License
  • Install

    $ npm install --save remove-object-properties
    # OR
    $ yarn add remove-object-properties

    Usage

    const removeObjectProperties = require('remove-object-properties')
    
    const obj = {
    	foo: 1,
    	bar: 2,
    	baz: 3,
    	whoop: 4,
    	whoo: 5
    }
    
    const newObj = removeObjProps(obj, 'foo', 'bar')
    const newNewObj = removeObjProps(obj, ['foo', 'bar'])
    
    console.log(obj) // { foo: 1, bar: 2, baz: 3, whoop: 4, whoo: 5 }
    console.log(newObj) // { baz: 3, whoop: 4, whoo: 5 }
    console.log(newNewObj) // { baz: 3, whoop: 4, whoo: 5 }

    Contribute

    Contributions are welcome. Please open up an issue or create PR if you would like to help out.

    Note: If editing the README, please conform to the standard-readme specification.

    License

    Licensed under the MIT License.

    Package Sidebar

    Install

    npm i remove-object-properties

    Weekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • tiaanduplessis