mirror of
https://github.com/System-End/github-readme-stats.git
synced 2026-04-19 21:05:16 +00:00
Silence vscode type error in chunkArray function (#2965)
This commit is contained in:
parent
82917825f9
commit
16c6caaa52
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue