Small Refactor
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
export function sortedWith<T>(value: T[], compare: (a: T, b: T) => number): T[] {
|
||||
return [...value].sort(compare);
|
||||
return value.toSorted(compare);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user