remove-underscored
v1.0.0
Published
Remove keys that start with an underscore from an object or array of objects.
Downloads
5
Readme
The module
Remove keys that start with an underscore from an object or array of objects.
Install
npm install remove-underscored
Usage
const removeUnderscored = require("remove-underscored");
removeUnderscored({
a: {
_a: "a",
b: 1
},
_b: ["b"]
});
//=> { a: { b: 1 } }
API
removeUnderscored(obj)
obj
Type: object or array
The object or array to handle.