Miss any of our Open RFC calls?Watch the recordings here! »

hide-property

0.0.2 • Public • Published

hide-property

Hides a property of an object

Install

npm install hide-property

Example

var hide = require('hide-property')
 
var obj = {a:10, b:20}
 
console.log(obj) // { a: 10, b: 20 }
 
hide(obj, 'a')
 
console.log(obj) // { b: 20 }
 
console.log(obj.a) // 10

Keywords

none

Install

npm i hide-property

DownloadsWeekly Downloads

65

Version

0.0.2

License

MIT

Unpacked Size

1.26 kB

Total Files

4

Last publish

Collaborators

  • avatar