From ffc4ddfb774310c26227558d22947cb6f43230c2 Mon Sep 17 00:00:00 2001 From: Kira Date: Fri, 15 May 2020 13:53:19 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BF=AE=E6=94=B9BI.sum=E5=92=8Cav?= =?UTF-8?q?erage=E6=96=B9=E6=B3=95=E5=8F=82=E6=95=B0=E5=A3=B0=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/core/base.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/typescript/core/base.ts b/typescript/core/base.ts index c6702d2ef..e72decc91 100644 --- a/typescript/core/base.ts +++ b/typescript/core/base.ts @@ -329,9 +329,9 @@ export interface _base { isEven: (value: string|number) => boolean; - sum: (array: any[], iteratee: Function, context: any) => number; + sum: (array: any[], iteratee?: Function, context?: any) => number; - average: (array: any[], iteratee: Function, context: any) => number; + average: (array: any[], iteratee?: Function, context?: any) => number; trim: (string?: string, chars?: string) => string;