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
28
frontend/node_modules/es-toolkit/dist/compat/array/reverse.js
generated
vendored
Normal file
28
frontend/node_modules/es-toolkit/dist/compat/array/reverse.js
generated
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
//#region src/compat/array/reverse.ts
|
||||
/**
|
||||
* Reverses the elements of an array in place.
|
||||
*
|
||||
* This function takes an array and reverses its elements in place, modifying the original array.
|
||||
* If the input is `null` or `undefined`, it returns the input as is.
|
||||
*
|
||||
* @template T - The type of elements in the array.
|
||||
* @param array - The array to reverse. If `null` or `undefined`, the input is returned as is.
|
||||
* @returns The reversed array, or `null`/`undefined` if the input was `null`/`undefined`.
|
||||
*
|
||||
* @example
|
||||
* const array = [1, 2, 3, 4, 5];
|
||||
* const reversedArray = reverse(array);
|
||||
* // reversedArray is [5, 4, 3, 2, 1], and array is also modified to [5, 4, 3, 2, 1].
|
||||
*
|
||||
* const emptyArray = reverse([]);
|
||||
* // emptyArray is [].
|
||||
*
|
||||
* const nullArray = reverse(null);
|
||||
* // nullArray is null.
|
||||
*/
|
||||
function reverse(array) {
|
||||
if (array == null) return array;
|
||||
return array.reverse();
|
||||
}
|
||||
//#endregion
|
||||
exports.reverse = reverse;
|
||||
Loading…
Add table
Add a link
Reference in a new issue