resolving some issues about comments

This commit is contained in:
iamsoorena
2017-12-15 13:08:12 +03:30
parent f26c94edab
commit cec3db48a6

View File

@ -15,6 +15,7 @@ const cleanObj = (obj, keys = [], childIndicator) => {
}
/*
dirtyObj = {a: 1, b: 2, children: {a: 1, b: 2}}
let cleaned = cleanObj(dirtyObj, [a]) // { a: 1, children : { a: 1}}
cleanObj(dirtyObj, ["a"],"children")
console.log(dirtyObj)// { a: 1, children : { a: 1}}
*/
```