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
29
frontend/node_modules/es-toolkit/dist/compat/object/mapValues.js
generated
vendored
Normal file
29
frontend/node_modules/es-toolkit/dist/compat/object/mapValues.js
generated
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
const require_identity = require("../../function/identity.js");
|
||||
const require_mapValues = require("../../object/mapValues.js");
|
||||
const require_iteratee = require("../util/iteratee.js");
|
||||
//#region src/compat/object/mapValues.ts
|
||||
/**
|
||||
* Creates a new object with the same keys as the given object, but with values generated
|
||||
* by running each own enumerable property of the object through the iteratee function.
|
||||
*
|
||||
* @template T - The type of the object.
|
||||
* @template K - The type of the keys in the object.
|
||||
* @template V - The type of the new values generated by the iteratee function.
|
||||
*
|
||||
* @param object - The object to iterate over.
|
||||
* @param [getNewValue] -
|
||||
* The function invoked per own enumerable property, or a path to generate new values.
|
||||
* @returns Returns the new mapped object.
|
||||
*
|
||||
* @example
|
||||
* // Example usage:
|
||||
* const obj = { a: 1, b: 2 };
|
||||
* const result = mapValues(obj, (value) => value * 2);
|
||||
* console.log(result); // { a: 2, b: 4 }
|
||||
*/
|
||||
function mapValues(object, getNewValue = require_identity.identity) {
|
||||
if (object == null) return {};
|
||||
return require_mapValues.mapValues(object, require_iteratee.iteratee(getNewValue));
|
||||
}
|
||||
//#endregion
|
||||
exports.mapValues = mapValues;
|
||||
Loading…
Add table
Add a link
Reference in a new issue