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/util/methodOf.mjs
generated
vendored
Normal file
28
frontend/node_modules/es-toolkit/dist/compat/util/methodOf.mjs
generated
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
import { invoke } from "./invoke.mjs";
|
||||
//#region src/compat/util/methodOf.ts
|
||||
/**
|
||||
* Creates a function that invokes the method at a given path of `object` with the provided arguments.
|
||||
*
|
||||
* @param object - The object to query.
|
||||
* @param args - The arguments to invoke the method with.
|
||||
* @returns Returns a new function that takes a path and invokes the method at `path` with `args`.
|
||||
*
|
||||
* @example
|
||||
* const object = {
|
||||
* a: {
|
||||
* b: function (x, y) {
|
||||
* return x + y;
|
||||
* }
|
||||
* }
|
||||
* };
|
||||
*
|
||||
* const add = methodOf(object, 1, 2);
|
||||
* console.log(add('a.b')); // => 3
|
||||
*/
|
||||
function methodOf(object, ...args) {
|
||||
return function(path) {
|
||||
return invoke(object, path, args);
|
||||
};
|
||||
}
|
||||
//#endregion
|
||||
export { methodOf };
|
||||
Loading…
Add table
Add a link
Reference in a new issue