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/intersection.mjs
generated
vendored
Normal file
31
frontend/node_modules/es-toolkit/dist/fp/array/intersection.mjs
generated
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
import { intersection as intersection$1 } from "../../array/intersection.mjs";
|
||||
import { combineEagerAndLazyFunctions, createLazyFunction } from "../_internal/lazy.mjs";
|
||||
//#region src/fp/array/intersection.ts
|
||||
/**
|
||||
* Creates a function that keeps values from the piped array that are also present in another array.
|
||||
*
|
||||
* Equality follows SameValueZero through Set membership, matching the main
|
||||
* {@link intersection} implementation. The returned function is lazy-capable
|
||||
* inside {@link pipe}.
|
||||
*
|
||||
* @template T - The type of elements in the arrays.
|
||||
* @param secondArray - Values to intersect with the piped array.
|
||||
* @returns A function that maps the piped array to its intersection.
|
||||
*
|
||||
* @example
|
||||
* import { intersection, pipe } from 'es-toolkit/fp';
|
||||
*
|
||||
* pipe([1, 2, 3], intersection([2, 4]));
|
||||
* // => [2]
|
||||
*/
|
||||
function intersection(secondArray) {
|
||||
const secondSet = new Set(secondArray);
|
||||
function intersectionEager(array) {
|
||||
return intersection$1(array, secondArray);
|
||||
}
|
||||
return combineEagerAndLazyFunctions(intersectionEager, createLazyFunction((value, _index, emit) => {
|
||||
if (secondSet.has(value)) emit(value);
|
||||
}));
|
||||
}
|
||||
//#endregion
|
||||
export { intersection };
|
||||
Loading…
Add table
Add a link
Reference in a new issue