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
27
frontend/node_modules/es-toolkit/dist/compat/object/property.mjs
generated
vendored
Normal file
27
frontend/node_modules/es-toolkit/dist/compat/object/property.mjs
generated
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
import { get } from "./get.mjs";
|
||||
//#region src/compat/object/property.ts
|
||||
/**
|
||||
* Creates a function that returns the value at a given path of an object.
|
||||
*
|
||||
* @template T - The type of object.
|
||||
* @template R - The type of the value to return.
|
||||
* @param path - The path of the property to get.
|
||||
* @returns Returns a new function that takes an object and returns the value at the specified path.
|
||||
*
|
||||
* @example
|
||||
* const getObjectValue = property('a.b.c');
|
||||
* const result = getObjectValue({ a: { b: { c: 3 } } });
|
||||
* console.log(result); // => 3
|
||||
*
|
||||
* @example
|
||||
* const getObjectValue = property(['a', 'b', 'c']);
|
||||
* const result = getObjectValue({ a: { b: { c: 3 } } });
|
||||
* console.log(result); // => 3
|
||||
*/
|
||||
function property(path) {
|
||||
return function(object) {
|
||||
return get(object, path);
|
||||
};
|
||||
}
|
||||
//#endregion
|
||||
export { property };
|
||||
Loading…
Add table
Add a link
Reference in a new issue