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
24
frontend/node_modules/es-toolkit/dist/compat/function/flip.js
generated
vendored
Normal file
24
frontend/node_modules/es-toolkit/dist/compat/function/flip.js
generated
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
//#region src/compat/function/flip.ts
|
||||
/**
|
||||
* Reverses the order of arguments for a given function.
|
||||
*
|
||||
* @template F - The type of the function being flipped.
|
||||
* @param func - The function whose arguments will be reversed.
|
||||
* @returns A new function that takes the
|
||||
* reversed arguments and returns the result of calling `func`.
|
||||
*
|
||||
* @example
|
||||
* function fn(a: string, b: string, c: string, d: string) {
|
||||
* return [a, b, c, d];
|
||||
* }
|
||||
*
|
||||
* const flipped = flip(fn);
|
||||
* flipped('a', 'b', 'c', 'd'); // => ['d', 'c', 'b', 'a']
|
||||
*/
|
||||
function flip(func) {
|
||||
return function(...args) {
|
||||
return func.apply(this, args.reverse());
|
||||
};
|
||||
}
|
||||
//#endregion
|
||||
exports.flip = flip;
|
||||
Loading…
Add table
Add a link
Reference in a new issue