objrmprop

1.0.7 • Public • Published

About

Use this module to create a new object by removing properties from an existing object.

E.g:

const user = {name: "Mohammed MT", title: "SSE", skills: "nodejs"};

const newUser = objrmprop(user, ["title", "skills"]); // Results {name: "Mohammed MT"}

OR

const newUser = objrmprop(user, "title skills"); // Results {name: "Mohammed MT"}

Usage

const objrmprop = require("objrmprop");

// Using Array:

const newUser = objrmprop(user, ["title", "skills"]);

// Using String:

const newUser = objrmprop(user, "title skills");

License

MIT

Package Sidebar

Install

npm i objrmprop

Weekly Downloads

1

Version

1.0.7

License

MIT

Unpacked Size

2.16 kB

Total Files

4

Last publish

Collaborators

  • mohammedmt