mirror of
https://github.com/LukeHagar/sveltesociety.dev.git
synced 2025-12-07 04:21:40 +00:00
fix: Run updateNpm.js and updatePublint.js in chunked pages (#536)
* fix: Run `updateNpm` and `updatePublint` in chunked pages * Object shorthand
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
/**
|
||||
* Divide an array into multiple smaller array
|
||||
* @param {Array} input
|
||||
* @template T
|
||||
* @param {Array<T>} input
|
||||
* @param {number} size
|
||||
* @return {Array<Array>}
|
||||
* @return {Array<Array<T>>}
|
||||
*/
|
||||
export function chunk(input, size) {
|
||||
size = size < 1 ? 10 : size;
|
||||
|
||||
Reference in New Issue
Block a user