From a70ddebc8a0b3c688c196f860006c48a8340a7b7 Mon Sep 17 00:00:00 2001 From: andrzej Date: Wed, 8 May 2024 16:52:25 +0200 Subject: [PATCH] delete function module better to have that stuff in tmdb --- src/functions.tsx | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 src/functions.tsx diff --git a/src/functions.tsx b/src/functions.tsx deleted file mode 100644 index 6ab9370..0000000 --- a/src/functions.tsx +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Move array item from provided index to specified index - * @remarks 'to' index refers to position in original array, i.e. if to > from, to = to -1 - * @param array - * @param from - the index of the item we want moved - * @param to - the index we want the item moved to - * @returns The modified array - * - * @beta -*/ -export function relocateArrayItem(array: Array, from: number, to: number) { - const newArray = structuredClone(array) - const element = newArray.splice(from, 1)[0] - newArray.splice(to < from ? to : to - 1, 0, element) - console.log("reordered array: ") - console.log(newArray) - return newArray -} -/** - * Returns a complete tmdb image url - */ -