diff --git a/src/util.ts b/src/util.ts index fd72850..47469de 100644 --- a/src/util.ts +++ b/src/util.ts @@ -88,7 +88,7 @@ export const getNewErrors = ( } export const getTotalErrorsCount = (errorMap: Map): number => - [...errorMap.values()].reduce((sum, info) => sum + info.count, 0) + Array.from(errorMap.values()).reduce((sum, info) => sum + info.count, 0) export const toHumanReadableText = ( errorMap: Map