@jswork/next-remove-keys
v1.0.2
Published
Remove keys from array/object.
Downloads
139
Readme
next-remove-keys
Remove keys from array/object.
installation
yarn add @jswork/next-remove-keys
usage
import '@jswork/next-remove-keys';
const obj = {
name: "John Doe",
address: {
street: "123 Main St",
city: "Anytown",
state: "CA",
zip: "12345",
},
phone: {
home: "555-555-1234",
work: "555-555-5678",
},
};
nx.removeKeys(obj, {
keys: ["address.zip", "work"],
});
license
Code released under the MIT license.