diff --git a/src/series.ts b/src/series.ts index 08810479..fb43bcd4 100644 --- a/src/series.ts +++ b/src/series.ts @@ -5,7 +5,7 @@ import { list } from './array' * that should be treated with order. */ export const series = ( - items: T[], + items: T[] | readonly T[], toKey: (item: T) => string | symbol = item => `${item}` ) => { const { indexesByKey, itemsByIndex } = items.reduce(