clearkeys
clear keys for object and its child nodes
Install
for node
$ npm install clearkeys --save
for browser
$ cortex install clearkeys --save
Usage
var origin = "a": 1 "b": "c": "d": {};originc;originc;origindb = origin;originde = 4;var obj = ;// now obj will be {"c":[{"d":2},{"d":3}],"d":{"e":4}}
Todo
- able to custom filters, for example, to clear keys whose value is a function.