2.1.1 โ€ข Published 9 months ago

remove-properties v2.1.1

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
9 months ago

๐Ÿ”ฅ Remove properties from object

easy-to-use, zero-dependency property remover.

Typedefinitions are built-in

build supportServer totalDownloads weeklyDownloads version stars license

๐Ÿฎ Installation

  • Using NPM: npm install remove-properties --save
  • Using Yarn: yarn add remove-properties

๐Ÿงถ Usage

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

NameTypeRequiredDefault
objObjectโœ”๏ธ-
removeArray{string}โœ”๏ธ-

๐Ÿงฆ Contributing

Feel free to use GitHub's features.