- makeTree<K, T>(__namedParameters): Tree<T>
Type Parameters
- K extends string | number
- T extends {
[k in string | number]?: string[]
}
Parameters
- __namedParameters: {
items: T[];
pathKey: K;
sort?: ((a: T, b: T) => number);
}items: T[]
pathKey: K
Optional
sort?: ((a: T, b: T) => number)
- (a, b): number
Returns number