# array-tree-filter Filter by keys in array tree. [](https://npmjs.org/package/array-tree-filter) [](https://travis-ci.org/afc163/array-tree-filter) [](https://david-dm.org/afc163/array-tree-filter) [](https://npmjs.org/package/array-tree-filter) ```js import arrayTreeFilter from 'array-tree-filter'; const data = [{ value: 'a', children: [{ value: 'b', children: [{ value: 'c' }, { value: 'd', }] }], }]; const values = ['a', 'b', 'c']; const result = arrayTreeFilter( data, (item, level) => item.value === values[level] ); console.log(result); // [ // { value: 'a', children: [...] }, // { value: 'b', children: [...] }, // { value: 'c', children: [...] } // ] ```