obj-del

0.1.0 • Public • Published

obj-del

NPM version Build status Test coverage Dependency Status License Downloads

Remove multiple keys by path

Install

$ npm install --save obj-del

Usage

var del = require('obj-del');
 
var obj = {
  a: 1,
  b: { c: 1 },
  x: { y: { z: 1 } }
};
 
del(obj, 'a', 'b.c', 'x.y.z'); // → { b: {}, x: { y: {} } }

License

MIT © Ariel Mashraki

Package Sidebar

Install

npm i obj-del

Weekly Downloads

5

Version

0.1.0

License

MIT

Last publish

Collaborators

  • a8m