diff --git a/src/handler/utilities/partition.ts b/src/handler/utilities/partition.ts deleted file mode 100644 index f83c1c0..0000000 --- a/src/handler/utilities/partition.ts +++ /dev/null @@ -1,8 +0,0 @@ -export function partition(condition: (el: T) => el is U, array: T[]): [U[], T[]] { - const uArr: U[] = []; - const vArr: T[] = []; - for (const el of array) { - (condition(el) ? uArr : vArr).push(el); - } - return [uArr, vArr]; -}