https://github.com/barbarbar338/remove-properties
๐ฅ Remove properties from object
https://github.com/barbarbar338/remove-properties
delete hidden hide javascript js json node nodejs object properties property remove ts typescript
Last synced: 5 months ago
JSON representation
๐ฅ Remove properties from object
- Host: GitHub
- URL: https://github.com/barbarbar338/remove-properties
- Owner: barbarbar338
- License: gpl-3.0
- Created: 2021-03-13T14:56:16.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-08-06T06:11:14.000Z (almost 2 years ago)
- Last Synced: 2024-10-12T13:15:47.662Z (8 months ago)
- Topics: delete, hidden, hide, javascript, js, json, node, nodejs, object, properties, property, remove, ts, typescript
- Language: TypeScript
- Homepage: https://npmjs.com/remove-properties
- Size: 23.4 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ๐ฅ Remove properties from object
easy-to-use, zero-dependency property remover.
**Typedefinitions are built-in**
[](https://github.com/barisbored/remove-properties)
[](https://discord.gg/BjEJFwh)
[](http://npmjs.com/remove-properties)
[](http://npmjs.com/remove-properties)
[](http://npmjs.com/remove-properties)
[](https://github.com/barisbored/remove-properties)
[](https://github.com/barisbored/remove-properties)# ๐ฎ Installation
- Using NPM: `npm install remove-properties --save`
- Using Yarn: `yarn add remove-properties`# ๐งถ Usage
```js
const { removeProperties } = require("remove-properties");const myObj = { a: 1, b: 2, c: 3, d: 4, e: 5, f: 6, g: 7 };
removeProperties(myObj, ["a", "c", "f"]); // => { b: 2, d: 4, e: 5, g: 7 }
```# ๐ Options
| Name | Type | Required | Default |
| ------ | ------------- | -------- | ------- |
| obj | Object | โ๏ธ | - |
| remove | Array{string} | โ๏ธ | - |# ๐งฆ Contributing
Feel free to use GitHub's features.