1
This commit is contained in:
14
20220330_Vote/Ewide.Web.Entry/wwwroot/lib/xe-utils/chunk.d.ts
vendored
Normal file
14
20220330_Vote/Ewide.Web.Entry/wwwroot/lib/xe-utils/chunk.d.ts
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* 将一个数组分割成大小的组。如果数组不能被平均分配,那么最后一块将是剩下的元素
|
||||
* @param array 数组
|
||||
* @param size 每组大小
|
||||
*/
|
||||
export declare function chunk<T>(array: T[], size: number): T[][];
|
||||
|
||||
declare module './ctor' {
|
||||
interface XEUtilsMethods {
|
||||
chunk: typeof chunk;
|
||||
}
|
||||
}
|
||||
|
||||
export default chunk
|
||||
Reference in New Issue
Block a user