Skip to content

Commit

Permalink
fix: handle relative URLs in flatten() (jspm#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bubblyworld authored Mar 11, 2023
1 parent 489807e commit 797747f
Show file tree
Hide file tree
Showing 5 changed files with 427 additions and 233 deletions.
7 changes: 3 additions & 4 deletions src/alphabetize.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export function alphabetize<T> (obj: Record<string, T>): Record<string, T> {
export function alphabetize<T>(obj: Record<string, T>): Record<string, T> {
const out: Record<string, T> = {};
for (const key of Object.keys(obj).sort())
out[key] = obj[key];
for (const key of Object.keys(obj).sort()) out[key] = obj[key];
return out;
}
}
Loading

0 comments on commit 797747f

Please sign in to comment.