Browse Source

fix: 修改参数

es6
alan 5 years ago
parent
commit
8ea54fcc84
  1. 6
      typescript/core/base.ts

6
typescript/core/base.ts

@ -58,11 +58,11 @@ export interface _base {
any: <T>(collection: T[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => boolean;
max: <T>(collection: any[]|object|string, callback?: ((index: number, value: T) => any)|object|string, thisArg?: any) => any;
max: (collection: any[]) => any;
min: <T>(collection: any[]|object|string, callback?: ((index: number, value: T) => any)|object|string, thisArg?: any) => any;
min: (collection: any[]) => any;
sortBy: <T>(collection: any[]|object|string, callback?: ((firstEl:T, secondEl:T) => number)|object|string, thisArg?: any) => any[];
sortBy: <T>(collection: any[]|object|string, callback?: ((index: number, value: T) => number)|object|string, thisArg?: any) => any[];
groupBy: <T>(collection: any[]|object|string, callback?: ((index: number, value: T) => any)|object|string, thisArg?: any) => object;

Loading…
Cancel
Save