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
32
frontend/node_modules/es-toolkit/dist/array/chunkBy.d.mts
generated
vendored
Normal file
32
frontend/node_modules/es-toolkit/dist/array/chunkBy.d.mts
generated
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
//#region src/array/chunkBy.d.ts
|
||||
/**
|
||||
* Splits an array into chunks of consecutive elements that share the same key.
|
||||
*
|
||||
* Walking left to right, each element's key is derived by `iteratee`. Whenever
|
||||
* the key differs from the previous element's key, a new chunk is started;
|
||||
* otherwise the element is appended to the current chunk. Keys are compared with
|
||||
* `!==` (strict inequality), so equal primitives stay together while distinct
|
||||
* object references always start a new chunk.
|
||||
*
|
||||
* Unlike {@link chunk}, which splits by a fixed size, `chunkBy` splits by a
|
||||
* boundary condition, keeping runs of same-keyed elements together.
|
||||
*
|
||||
* @template T - The type of elements in the array.
|
||||
* @param arr - The array to split into chunks.
|
||||
* @param iteratee - A function that derives the comparison key for each element.
|
||||
* @returns A two-dimensional array where each sub-array is a run of consecutive
|
||||
* elements that produced the same key.
|
||||
*
|
||||
* @example
|
||||
* // Group consecutive equal numbers
|
||||
* chunkBy([1, 1, 2, 3, 3, 3], value => value);
|
||||
* // Returns: [[1, 1], [2], [3, 3, 3]]
|
||||
*
|
||||
* @example
|
||||
* // Group consecutive words by their length
|
||||
* chunkBy(['a', 'b', 'cd', 'ef', 'g'], word => word.length);
|
||||
* // Returns: [['a', 'b'], ['cd', 'ef'], ['g']]
|
||||
*/
|
||||
declare function chunkBy<T>(arr: readonly T[], iteratee: (value: T) => unknown): T[][];
|
||||
//#endregion
|
||||
export { chunkBy };
|
||||
Loading…
Add table
Add a link
Reference in a new issue