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
31
frontend/node_modules/es-toolkit/dist/map/forEach.mjs
generated
vendored
Normal file
31
frontend/node_modules/es-toolkit/dist/map/forEach.mjs
generated
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
//#region src/map/forEach.ts
|
||||
/**
|
||||
* Executes a provided function once for each entry in a Map.
|
||||
*
|
||||
* This function iterates through all entries of the Map and executes the callback function
|
||||
* for each entry. The callback receives the value, key, and the Map itself as arguments.
|
||||
*
|
||||
* @template K - The type of keys in the Map.
|
||||
* @template V - The type of values in the Map.
|
||||
* @param map - The Map to iterate over.
|
||||
* @param callback - A function to execute for each entry.
|
||||
*
|
||||
* @example
|
||||
* const map = new Map([
|
||||
* ['a', 1],
|
||||
* ['b', 2],
|
||||
* ['c', 3]
|
||||
* ]);
|
||||
* forEach(map, (value, key) => {
|
||||
* console.log(`${key}: ${value}`);
|
||||
* });
|
||||
* // Output:
|
||||
* // a: 1
|
||||
* // b: 2
|
||||
* // c: 3
|
||||
*/
|
||||
function forEach(map, callback) {
|
||||
for (const [key, value] of map) callback(value, key, map);
|
||||
}
|
||||
//#endregion
|
||||
export { forEach };
|
||||
Loading…
Add table
Add a link
Reference in a new issue