1.0.2 • Published 4 years ago

delete-keys v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

delete-keys

Build Status GH Status NPM

Remove the keys you don't want from an object

Install

$ npm install delete-keys

Using Github NPM Registry

$ npm install abranhe@delete-keys

Usage

import deleteKeys from 'delete-keys';
 
const obj = {
  name: 'abraham',
  last: 'hernandez',
  _id: '03773',
  phone: '800-000-0000',
};
 
deleteKeys(obj, ['_id', 'phone']);
// {
//   name: 'abraham',
//   last: 'hernandez',
// }

API

deleteKeys(object, keys)

object

Type: object

The object you would like to delete the keys

keys

Type: array

License

MIT © Abraham Hernandez

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.0

4 years ago