refactor: restructure model to contain an object of rundowns

This commit is contained in:
Carlos Valente
2025-03-15 09:04:33 +01:00
committed by arc-alex
parent 0a80d6db31
commit abd9b127db
111 changed files with 4357 additions and 4515 deletions
+1 -4
View File
@@ -36,11 +36,8 @@ export function deleteAtIndex<T>(index: number, array: T[]) {
/**
* Reorders two objects in an array
* @param array
* @param fromIndex
* @param toIndex
*/
export function reorderArray<T>(array: T[], fromIndex: number, toIndex: number) {
export function reorderArray<T>(array: T[], fromIndex: number, toIndex: number): T[] {
if (fromIndex === toIndex) {
return array; // No change needed, return the original array
}