๐ฅ Remove properties from object
GPL-3.0 License
easy-to-use, zero-dependency property remover.
Typedefinitions are built-in
npm install remove-properties --save
yarn add remove-properties
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 }
Name | Type | Required | Default |
---|---|---|---|
obj | Object | โ๏ธ | - |
remove | Array{string} | โ๏ธ | - |
Feel free to use GitHub's features.