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
19
frontend/node_modules/es-toolkit/dist/array/initial.mjs
generated
vendored
Normal file
19
frontend/node_modules/es-toolkit/dist/array/initial.mjs
generated
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
//#region src/array/initial.ts
|
||||
/**
|
||||
* Returns a new array containing all elements except the last one from the input array.
|
||||
* If the input array is empty or has only one element, the function returns an empty array.
|
||||
*
|
||||
* @template T The type of elements in the array.
|
||||
* @param arr - The input array.
|
||||
* @returns A new array containing all but the last element of the input array.
|
||||
*
|
||||
* @example
|
||||
* const arr = [1, 2, 3, 4];
|
||||
* const result = initial(arr);
|
||||
* // result will be [1, 2, 3]
|
||||
*/
|
||||
function initial(arr) {
|
||||
return arr.slice(0, -1);
|
||||
}
|
||||
//#endregion
|
||||
export { initial };
|
||||
Loading…
Add table
Add a link
Reference in a new issue