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