mirror of
https://github.com/System-End/github-readme-stats.git
synced 2026-04-19 16:38:23 +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);
|
||||
|
||||
if (!resultArray[chunkIndex]) {
|
||||
// @ts-ignore
|
||||
resultArray[chunkIndex] = []; // start a new chunk
|
||||
}
|
||||
|
||||
// @ts-ignore
|
||||
resultArray[chunkIndex].push(item);
|
||||
|
||||
return resultArray;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue