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
32
frontend/node_modules/es-toolkit/dist/fp/array/intersectionWith.js
generated
vendored
Normal file
32
frontend/node_modules/es-toolkit/dist/fp/array/intersectionWith.js
generated
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
const require_intersectionWith = require("../../array/intersectionWith.js");
|
||||
const require_lazy = require("../_internal/lazy.js");
|
||||
//#region src/fp/array/intersectionWith.ts
|
||||
/**
|
||||
* Creates a function that keeps values equal to at least one 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 intersection.
|
||||
*
|
||||
* @example
|
||||
* import { intersectionWith, pipe } from 'es-toolkit/fp';
|
||||
*
|
||||
* pipe([{ id: 1 }, { id: 2 }], intersectionWith([2], (item, id) => item.id === id));
|
||||
* // => [{ id: 2 }]
|
||||
*/
|
||||
function intersectionWith(secondArray, areItemsEqual) {
|
||||
function intersectionWithEager(array) {
|
||||
return require_intersectionWith.intersectionWith(array, secondArray, areItemsEqual);
|
||||
}
|
||||
const intersectionWithLazy = require_lazy.createLazyFunction((value, _index, emit) => {
|
||||
if (secondArray.some((other) => areItemsEqual(value, other))) emit(value);
|
||||
});
|
||||
return require_lazy.combineEagerAndLazyFunctions(intersectionWithEager, intersectionWithLazy);
|
||||
}
|
||||
//#endregion
|
||||
exports.intersectionWith = intersectionWith;
|
||||
Loading…
Add table
Add a link
Reference in a new issue