mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
[addon] check rd cached torrents in chunks
This commit is contained in:
7
addon/moch/mochHelper.js
Normal file
7
addon/moch/mochHelper.js
Normal file
@@ -0,0 +1,7 @@
|
||||
function chunkArray(arr, size) {
|
||||
return arr.length > size
|
||||
? [arr.slice(0, size), ...chunkArray(arr.slice(size), size)]
|
||||
: [arr];
|
||||
}
|
||||
|
||||
module.exports = { chunkArray }
|
||||
Reference in New Issue
Block a user