diff --git a/src/lib/array.ts b/src/lib/array.ts index 72510c86..708dddb8 100644 --- a/src/lib/array.ts +++ b/src/lib/array.ts @@ -1,5 +1,6 @@ +export type InsertBetweenFunction = (i: number) => T -export function insertBetween(items: T[], fn: (i: number) => I): Array { +export function insertBetween(items: T[], fn: InsertBetweenFunction): Array { return items.reduce>((acc, x, i) => { acc.push(x)