1.0.0 • Published 5 years ago

remove-underscored v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

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.