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
20
frontend/node_modules/es-toolkit/dist/array/sample.js
generated
vendored
Normal file
20
frontend/node_modules/es-toolkit/dist/array/sample.js
generated
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
//#region src/array/sample.ts
|
||||
/**
|
||||
* Returns a random element from an array.
|
||||
*
|
||||
* This function takes an array and returns a single element selected randomly from the array.
|
||||
*
|
||||
* @template T - The type of elements in the array.
|
||||
* @param arr - The array to sample from.
|
||||
* @returns A random element from the array.
|
||||
*
|
||||
* @example
|
||||
* const array = [1, 2, 3, 4, 5];
|
||||
* const randomElement = sample(array);
|
||||
* // randomElement will be one of the elements from the array, selected randomly.
|
||||
*/
|
||||
function sample(arr) {
|
||||
return arr[Math.floor(Math.random() * arr.length)];
|
||||
}
|
||||
//#endregion
|
||||
exports.sample = sample;
|
||||
Loading…
Add table
Add a link
Reference in a new issue