xe-utils-es
Version:
JavaScript 函数库、工具类
12 lines (11 loc) • 412 B
TypeScript
/**
* 从树结构中指定方法后的返回值组成的新数组
*
* @param {object} obj 对象/数组
* @param {Function} iterate(item, index, items, path, parent, nodes) 回调
* @param {object} options {children: 'children'}
* @param {object} context 上下文
* @return {Object/Array}
*/
declare const mapTree: (obj: any, iterate: any, options?: any, context?: any) => any;
export default mapTree;