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/propertyOf.js
generated
vendored
Normal file
29
frontend/node_modules/es-toolkit/dist/compat/object/propertyOf.js
generated
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
const require_get = require("./get.js");
|
||||
//#region src/compat/object/propertyOf.ts
|
||||
/**
|
||||
* Creates a function that returns the value at a given path of an object.
|
||||
*
|
||||
* Unlike `property`, which creates a function bound to a specific path and allows you to query different objects,
|
||||
* `propertyOf` creates a function bound to a specific object and allows you to query different paths within that object.
|
||||
*
|
||||
* @template T - The type of object.
|
||||
* @param object - The object to query.
|
||||
* @returns Returns a new function that takes a path and retrieves the value from the object at the specified path.
|
||||
*
|
||||
* @example
|
||||
* const getValue = propertyOf({ a: { b: { c: 3 } } });
|
||||
* const result = getValue('a.b.c');
|
||||
* console.log(result); // => 3
|
||||
*
|
||||
* @example
|
||||
* const getValue = propertyOf({ a: { b: { c: 3 } } });
|
||||
* const result = getValue(['a', 'b', 'c']);
|
||||
* console.log(result); // => 3
|
||||
*/
|
||||
function propertyOf(object) {
|
||||
return function(path) {
|
||||
return require_get.get(object, path);
|
||||
};
|
||||
}
|
||||
//#endregion
|
||||
exports.propertyOf = propertyOf;
|
||||
Loading…
Add table
Add a link
Reference in a new issue