Skip to content

afeiship/next-tree-search

Repository files navigation

next-tree-search

Tree search methods for next.

version license size download

installation

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

import NxTreeSearch from '@jswork/next-tree-search';

NxTreeSearch.find(data, (index, item)=>{});
NxTreeSearch.filter(data, (index, item)=>{});

license

Code released under the MIT license.