Return a deep copy of an object, recursively filtered to have only keys that match the given glob patterns.
npm
Install withnpm i deep-filter-object --save
Usage
var deepFilter = ; ;//=> {b: {b: {b: 'b'}}}
Negation patterns:
;//=> {bar: {bar: {bar: 'b', baz: 'c'}}}
Filter functions
;//=> {b: 'b'} ;//=> {a: 'a', b: {d: {e: {f: 'f'}}}}
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Run tests
Install dev dependencies:
npm i -d && npm test
Author
Jon Schlinkert
License
Copyright (c) 2015 Jon Schlinkert
Released under the MIT license
This file was generated by verb on January 19, 2015.