refactor: remove unusable func

This commit is contained in:
Slincnik 2025-01-14 23:49:05 +03:00
parent 2eab0d541e
commit 7e7cbcae0b
No known key found for this signature in database

View file

@ -6,14 +6,6 @@ export async function asyncForEach<T>(collection: T[], callback: (_item: T) => P
return await Promise.all(allPromises); return await Promise.all(allPromises);
} }
export function sortByKey<T>(array: T[], key: string) {
return array.sort(function (a, b) {
const x = a[key];
const y = b[key];
return x < y ? 1 : x > y ? -1 : 0;
});
}
export function shuffle<T>(pArray: T[]) { export function shuffle<T>(pArray: T[]) {
const array: T[] = []; const array: T[] = [];