Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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]
- Host: GitHub
- URL: https://github.com/will123195/hide-property
- Owner: will123195
- Created: 2014-09-13T02:56:10.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-08-08T16:20:37.000Z (over 4 years ago)
- Last Synced: 2024-10-26T03:19:53.593Z (about 2 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```