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:
jtricerolph 2026-07-20 14:37:36 +00:00
parent cae411eae7
commit 1c411e402e
19809 changed files with 1962608 additions and 97 deletions

View file

@ -0,0 +1,27 @@
import { unionBy as unionBy$1 } from "../../array/unionBy.mjs";
//#region src/fp/array/unionBy.ts
/**
* Creates a function that returns unique values by mapped identity.
*
* Values from the piped array are considered before values from secondArray. The mapper
* is used to compare identities, matching the main {@link unionBy} behavior.
*
* @template T - The type of elements in the arrays.
* @template U - The type of comparison keys returned by the mapper.
* @param secondArray - Values to include after the piped array.
* @param mapper - Called for values from both arrays to produce comparison keys.
* @returns A function that maps a readonly array to its union with secondArray.
*
* @example
* import { pipe, unionBy } from 'es-toolkit/fp';
*
* pipe([{ id: 1 }], unionBy([{ id: 1 }, { id: 2 }], item => item.id));
* // => [{ id: 1 }, { id: 2 }]
*/
function unionBy(secondArray, mapper) {
return function(array) {
return unionBy$1(array, secondArray, mapper);
};
}
//#endregion
export { unionBy };