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/drop.mjs
generated
vendored
Normal file
30
frontend/node_modules/es-toolkit/dist/fp/array/drop.mjs
generated
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
import { drop as drop$1 } from "../../array/drop.mjs";
|
||||
import { combineEagerAndLazyFunctions, createLazyFunction } from "../_internal/lazy.mjs";
|
||||
//#region src/fp/array/drop.ts
|
||||
/**
|
||||
* Creates a function that removes a number of values from the start of an array.
|
||||
*
|
||||
* Negative counts are treated as 0, matching the main {@link drop}
|
||||
* implementation. The returned function is lazy-capable inside {@link pipe}.
|
||||
*
|
||||
* @template T - The type of elements in the array.
|
||||
* @param count - The number of values to skip from the start.
|
||||
* @returns A function that maps the piped array to the remaining suffix.
|
||||
*
|
||||
* @example
|
||||
* import { drop, pipe } from 'es-toolkit/fp';
|
||||
*
|
||||
* pipe([1, 2, 3, 4], drop(2));
|
||||
* // => [3, 4]
|
||||
*/
|
||||
function drop(count) {
|
||||
const normalizedCount = Number.isNaN(count) ? 0 : Math.trunc(Math.max(count, 0));
|
||||
function dropEager(array) {
|
||||
return drop$1(array, count);
|
||||
}
|
||||
return combineEagerAndLazyFunctions(dropEager, createLazyFunction((value, index, emit) => {
|
||||
if (index >= normalizedCount) emit(value);
|
||||
}));
|
||||
}
|
||||
//#endregion
|
||||
export { drop };
|
||||
Loading…
Add table
Add a link
Reference in a new issue