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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.03latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.03

Package Sidebar

Install

npm i obj-del

Weekly Downloads

3

Version

0.1.0

License

MIT

Last publish

Collaborators

  • a8m