Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/will123195/hide-property

Hides a property of an object [nodejs]
https://github.com/will123195/hide-property

Last synced: 10 days ago
JSON representation

Hides a property of an object [nodejs]

Awesome Lists containing this project

README

        

hide-property
=============

Hides a property of an object

Install
=======

```
npm install hide-property
```

Example
=======

```js
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
```