@aweary/except

0.0.2 • Public • Published

except lets you return a copy of an object with specific properties removed/blacklisted

Installation

npm install @aweary/except

Usage

var except = require('@aweary/except')

var obj = { x: 1, y: 2, z: 3}
except(obj, 'x')
/* > { y: 2, z: 3 } */
except(obj, 'x y')
/* > { z: 3 } */
except(obj, ['x', 'y'])
/* > { z: 3 } */

Readme

Keywords

none

Package Sidebar

Install

npm i @aweary/except

Weekly Downloads

2

Version

0.0.2

License

ISC

Last publish

Collaborators

  • aweary