Add settings page for managing forecasting API key and URL via UI
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
cae411eae7
commit
1c411e402e
19809 changed files with 1962608 additions and 97 deletions
24
frontend/node_modules/es-toolkit/dist/fp/array/chunk.js
generated
vendored
Normal file
24
frontend/node_modules/es-toolkit/dist/fp/array/chunk.js
generated
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
const require_chunk = require("../../array/chunk.js");
|
||||
//#region src/fp/array/chunk.ts
|
||||
/**
|
||||
* Creates a function that splits an array into sub-arrays of length `size`. The
|
||||
* final chunk holds the remaining elements when the array cannot be divided
|
||||
* evenly. Use it with {@link pipe}.
|
||||
*
|
||||
* @template T - The type of elements in the array.
|
||||
* @param size - The length of each chunk. Must be a positive integer.
|
||||
* @returns A function that maps a `readonly T[]` to a `T[][]`.
|
||||
* @throws {Error} When `size` is not a positive integer (propagated from the underlying implementation).
|
||||
*
|
||||
* @example
|
||||
* import { pipe, chunk } from 'es-toolkit/fp';
|
||||
*
|
||||
* pipe([1, 2, 3, 4, 5], chunk(2)); // => [[1, 2], [3, 4], [5]]
|
||||
*/
|
||||
function chunk(size) {
|
||||
return function(array) {
|
||||
return require_chunk.chunk(array, size);
|
||||
};
|
||||
}
|
||||
//#endregion
|
||||
exports.chunk = chunk;
|
||||
Loading…
Add table
Add a link
Reference in a new issue