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/without.js
generated
vendored
Normal file
30
frontend/node_modules/es-toolkit/dist/fp/array/without.js
generated
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
const require_without = require("../../array/without.js");
|
||||
const require_lazy = require("../_internal/lazy.js");
|
||||
//#region src/fp/array/without.ts
|
||||
/**
|
||||
* Creates a function that removes the configured values from an array.
|
||||
*
|
||||
* The returned function is lazy-capable inside {@link pipe}.
|
||||
*
|
||||
* @template T - The type of elements in the array.
|
||||
* @param values - Values to remove from the piped array.
|
||||
* @returns A function that maps the piped array to the remaining values.
|
||||
*
|
||||
* @example
|
||||
* import { pipe, without } from 'es-toolkit/fp';
|
||||
*
|
||||
* pipe([1, 2, 3, 2], without(2));
|
||||
* // => [1, 3]
|
||||
*/
|
||||
function without(...values) {
|
||||
const valueSet = new Set(values);
|
||||
function withoutEager(array) {
|
||||
return require_without.without(array, ...values);
|
||||
}
|
||||
const withoutLazy = require_lazy.createLazyFunction((value, _index, emit) => {
|
||||
if (!valueSet.has(value)) emit(value);
|
||||
});
|
||||
return require_lazy.combineEagerAndLazyFunctions(withoutEager, withoutLazy);
|
||||
}
|
||||
//#endregion
|
||||
exports.without = without;
|
||||
Loading…
Add table
Add a link
Reference in a new issue