remove-underscored
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

The module Travis CI Build Status

Remove keys that start with an underscore from an object or array of objects.

NPM Badge

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.

Dependencies (1)

Dev Dependencies (3)

Package Sidebar

Install

npm i remove-underscored

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

3.34 kB

Total Files

6

Last publish

Collaborators

  • richienb