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
25
frontend/node_modules/es-toolkit/dist/fp/array/takeRightWhile.js
generated
vendored
Normal file
25
frontend/node_modules/es-toolkit/dist/fp/array/takeRightWhile.js
generated
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
const require_takeRightWhile = require("../../array/takeRightWhile.js");
|
||||
//#region src/fp/array/takeRightWhile.ts
|
||||
/**
|
||||
* Creates a function that takes trailing values while a predicate returns true.
|
||||
*
|
||||
* The predicate is evaluated from right to left and receives the value, index, and full
|
||||
* input array. Use the returned function with {@link pipe}.
|
||||
*
|
||||
* @template T - The type of elements in the array.
|
||||
* @param predicate - Called with each value, index, and array while taking from the end.
|
||||
* @returns A function that maps a readonly array to the matching suffix.
|
||||
*
|
||||
* @example
|
||||
* import { pipe, takeRightWhile } from 'es-toolkit/fp';
|
||||
*
|
||||
* pipe([1, 2, 3, 4], takeRightWhile(value => value > 2));
|
||||
* // => [3, 4]
|
||||
*/
|
||||
function takeRightWhile(predicate) {
|
||||
return function(array) {
|
||||
return require_takeRightWhile.takeRightWhile(array, predicate);
|
||||
};
|
||||
}
|
||||
//#endregion
|
||||
exports.takeRightWhile = takeRightWhile;
|
||||
Loading…
Add table
Add a link
Reference in a new issue