initial commit of actions
This commit is contained in:
commit
949ece5785
44660 changed files with 12034344 additions and 0 deletions
13
github/codeql-action-v1/node_modules/chunkd/dist/chunkd.js
generated
vendored
Normal file
13
github/codeql-action-v1/node_modules/chunkd/dist/chunkd.js
generated
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
function chunkd(array, index, total) {
|
||||
let length = array.length;
|
||||
let size = Math.floor(length / total);
|
||||
let remainder = length % total;
|
||||
let offset = Math.min(index, remainder) + index * size;
|
||||
let chunk = size + (index < remainder ? 1 : 0);
|
||||
return array.slice(offset, offset + chunk);
|
||||
}
|
||||
exports.default = chunkd;
|
||||
module.exports = chunkd;
|
||||
//# sourceMappingURL=chunkd.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue