mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-05-18 21:25:46 +00:00
Silence vscode type error in chunkArray function (#2965)
This commit is contained in:
committed by
GitHub
parent
82917825f9
commit
16c6caaa52
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user