Silence vscode type error in chunkArray function (#2965)
This commit is contained in:
1 parent
82917825f9
commit
16c6caaa52
1 file changed
+2
@@ -412,9 +412,11 @@ const chunkArray = (arr, perChunk) => {
|
|||||||
const chunkIndex = Math.floor(index / perChunk);
|
const chunkIndex = Math.floor(index / perChunk);
|
||||||
|
|
||||||
if (!resultArray[chunkIndex]) {
|
if (!resultArray[chunkIndex]) {
|
||||||
|
// @ts-ignore
|
||||||
resultArray[chunkIndex] = []; // start a new chunk
|
resultArray[chunkIndex] = []; // start a new chunk
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @ts-ignore
|
||||||
resultArray[chunkIndex].push(item);
|
resultArray[chunkIndex].push(item);
|
||||||
|
|
||||||
return resultArray;
|
return resultArray;
|
||||||
|
|||||||
Reference in new issue
Block a user