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
31
frontend/node_modules/es-toolkit/dist/fp/array/differenceWith.mjs
generated
vendored
Normal file
31
frontend/node_modules/es-toolkit/dist/fp/array/differenceWith.mjs
generated
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
import { differenceWith as differenceWith$1 } from "../../array/differenceWith.mjs";
|
||||
import { combineEagerAndLazyFunctions, createLazyFunction } from "../_internal/lazy.mjs";
|
||||
//#region src/fp/array/differenceWith.ts
|
||||
/**
|
||||
* Creates a function that returns values that are not equal to any configured value.
|
||||
*
|
||||
* Equality is decided by the provided comparator. The returned function is
|
||||
* lazy-capable inside {@link pipe}.
|
||||
*
|
||||
* @template T - The type of elements in the piped array.
|
||||
* @template U - The type of elements in the configured array.
|
||||
* @param secondArray - Values to compare against the piped array.
|
||||
* @param areItemsEqual - Returns true when a piped value equals a configured value.
|
||||
* @returns A function that maps the piped array to its custom difference.
|
||||
*
|
||||
* @example
|
||||
* import { differenceWith, pipe } from 'es-toolkit/fp';
|
||||
*
|
||||
* pipe([{ id: 1 }, { id: 2 }], differenceWith([2], (item, id) => item.id === id));
|
||||
* // => [{ id: 1 }]
|
||||
*/
|
||||
function differenceWith(secondArray, areItemsEqual) {
|
||||
function differenceWithEager(array) {
|
||||
return differenceWith$1(array, secondArray, areItemsEqual);
|
||||
}
|
||||
return combineEagerAndLazyFunctions(differenceWithEager, createLazyFunction((value, _index, emit) => {
|
||||
if (secondArray.every((other) => !areItemsEqual(value, other))) emit(value);
|
||||
}));
|
||||
}
|
||||
//#endregion
|
||||
export { differenceWith };
|
||||
Loading…
Add table
Add a link
Reference in a new issue