UNPKG

xe-utils-es

Version:

JavaScript 函数库、工具类

12 lines (11 loc) 455 B
/** * 从树结构中查找匹配第一条数据的键、值、路径 * * @param {object} obj 对象/数组 * @param {Function} iterate(item, index, items, path, parent, nodes) 回调 * @param {object} options {children: 'children'} * @param {object} context 上下文 * @return {object} { item, index, items, path, parent, nodes } */ declare const findTree: (obj: any, iterate: any, options?: any, context?: any) => any; export default findTree;