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/function/flowRight.mjs
generated
vendored
Normal file
28
frontend/node_modules/es-toolkit/dist/compat/function/flowRight.mjs
generated
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
import { flatten } from "../../array/flatten.mjs";
|
||||
import { flowRight as flowRight$1 } from "../../function/flowRight.mjs";
|
||||
//#region src/compat/function/flowRight.ts
|
||||
/**
|
||||
* Creates a new function that executes the given functions in sequence from right to left. The return value of the previous function is passed as an argument to the next function.
|
||||
*
|
||||
* The `this` context of the returned function is also passed to the functions provided as parameters.
|
||||
*
|
||||
* This method is like `flow` except that it creates a function that invokes the given functions from right to left.
|
||||
*
|
||||
* @param funcs The functions to invoke.
|
||||
* @returns Returns the new composite function.
|
||||
*
|
||||
* @example
|
||||
* const add = (x: number, y: number) => x + y;
|
||||
* const square = (n: number) => n * n;
|
||||
* const double = (n: number) => n * 2;
|
||||
*
|
||||
* const combined = flowRight(double, [square, add]);
|
||||
* console.log(combined(1, 2)); // 18
|
||||
*/
|
||||
function flowRight(...funcs) {
|
||||
const flattenFuncs = flatten(funcs, 1);
|
||||
if (flattenFuncs.some((func) => typeof func !== "function")) throw new TypeError("Expected a function");
|
||||
return flowRight$1(...flattenFuncs);
|
||||
}
|
||||
//#endregion
|
||||
export { flowRight };
|
||||
Loading…
Add table
Add a link
Reference in a new issue