feat: improve library preview image generation on publish (#4321)
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
This commit is contained in:
@ -151,7 +151,10 @@ export const debounce = <T extends any[]>(
|
||||
};
|
||||
|
||||
// https://github.com/lodash/lodash/blob/es/chunk.js
|
||||
export const chunk = <T extends any>(array: T[], size: number): T[][] => {
|
||||
export const chunk = <T extends any>(
|
||||
array: readonly T[],
|
||||
size: number,
|
||||
): T[][] => {
|
||||
if (!array.length || size < 1) {
|
||||
return [];
|
||||
}
|
||||
|
Reference in New Issue
Block a user