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
30
frontend/node_modules/es-toolkit/dist/fp/array/toFilled.mjs
generated
vendored
Normal file
30
frontend/node_modules/es-toolkit/dist/fp/array/toFilled.mjs
generated
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
import { toFilled as toFilled$1 } from "../../array/toFilled.mjs";
|
||||
//#region src/fp/array/toFilled.ts
|
||||
/**
|
||||
* Creates a function that returns a filled copy of an array.
|
||||
*
|
||||
* The returned function follows Array.prototype.fill indexing semantics through the main
|
||||
* {@link toFilled} implementation and does not mutate the input array.
|
||||
*
|
||||
* @template T - The type of elements in the input array.
|
||||
* @template U - The type of the fill value.
|
||||
* @param value - The value to write into the returned array.
|
||||
* @param start - The start index. Defaults to 0.
|
||||
* @param end - The end index. Defaults to the array length.
|
||||
* @returns A function that maps a readonly array to a filled copy.
|
||||
*
|
||||
* @example
|
||||
* import { pipe, toFilled } from 'es-toolkit/fp';
|
||||
*
|
||||
* pipe([1, 2, 3], toFilled(0, 1));
|
||||
* // => [1, 0, 0]
|
||||
*/
|
||||
function toFilled(value, start, end) {
|
||||
return function(array) {
|
||||
if (start == null) return toFilled$1(array, value);
|
||||
if (end == null) return toFilled$1(array, value, start);
|
||||
return toFilled$1(array, value, start, end);
|
||||
};
|
||||
}
|
||||
//#endregion
|
||||
export { toFilled };
|
||||
Loading…
Add table
Add a link
Reference in a new issue