https://github.com/afeiship/next-tree-search
Tree search methods for next.
https://github.com/afeiship/next-tree-search
filter find helper next search traverse tree walk
Last synced: 25 days ago
JSON representation
Tree search methods for next.
- Host: GitHub
- URL: https://github.com/afeiship/next-tree-search
- Owner: afeiship
- License: mit
- Created: 2020-08-26T09:51:30.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-20T05:40:09.000Z (over 5 years ago)
- Last Synced: 2025-10-04T22:49:13.200Z (10 months ago)
- Topics: filter, find, helper, next, search, traverse, tree, walk
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# next-tree-search
> Tree search methods for next.
[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]
## installation
```bash
npm install -S @jswork/next-tree-search
```
## apis
| api | params | description |
| ------ | ------------------------- | ------------------- |
| find | (data, callback, options) | Find one element. |
| filter | (data, callback, options) | Find list elements. |
## usage
```js
import NxTreeSearch from '@jswork/next-tree-search';
NxTreeSearch.find(data, (index, item)=>{});
NxTreeSearch.filter(data, (index, item)=>{});
```
## license
Code released under [the MIT license](https://github.com/afeiship/next-tree-search/blob/master/LICENSE.txt).
[version-image]: https://img.shields.io/npm/v/@jswork/next-tree-search
[version-url]: https://npmjs.org/package/@jswork/next-tree-search
[license-image]: https://img.shields.io/npm/l/@jswork/next-tree-search
[license-url]: https://github.com/afeiship/next-tree-search/blob/master/LICENSE.txt
[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-tree-search
[size-url]: https://github.com/afeiship/next-tree-search/blob/master/dist/next-tree-search.min.js
[download-image]: https://img.shields.io/npm/dm/@jswork/next-tree-search
[download-url]: https://www.npmjs.com/package/@jswork/next-tree-search