Skip to content

Commit 1114a6d

Browse files
committed
Silence vscode type error in chunkArray function (anuraghazra#2965)
1 parent 48ff7ad commit 1114a6d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/common/utils.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,11 @@ const chunkArray = (arr, perChunk) => {
412412
const chunkIndex = Math.floor(index / perChunk);
413413

414414
if (!resultArray[chunkIndex]) {
415+
// @ts-ignore
415416
resultArray[chunkIndex] = []; // start a new chunk
416417
}
417418

419+
// @ts-ignore
418420
resultArray[chunkIndex].push(item);
419421

420422
return resultArray;

0 commit comments

Comments
 (0)