1.0.7 • Published 3 years ago

objrmprop v1.0.7

Weekly downloads
10
License
MIT
Repository
-
Last release
3 years ago

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

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago