You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
365 B
15 lines
365 B
5 months ago
|
/**
|
||
|
* 将一个数组分割成大小的组。如果数组不能被平均分配,那么最后一块将是剩下的元素
|
||
|
* @param array 数组
|
||
|
* @param size 每组大小
|
||
|
*/
|
||
|
export declare function chunk<T>(array: T[] | undefined, size: number): T[][];
|
||
|
|
||
|
declare module './ctor' {
|
||
|
interface XEUtilsMethods {
|
||
|
chunk: typeof chunk;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default chunk
|