mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 17:12:43 +00:00
feat: migrate to esm
This commit is contained in:
@@ -22,7 +22,10 @@ export type Tree<T> = {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
export function treeGroupBy<T>(items: T[], transform: (item: T) => string[]): Tree<T> {
|
||||
export function treeGroupBy<T>(
|
||||
items: T[],
|
||||
transform: (item: T) => string[]
|
||||
): Tree<T> {
|
||||
const tree: Tree<T> = {};
|
||||
|
||||
for (const item of items) {
|
||||
|
||||
Reference in New Issue
Block a user