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
24
frontend/node_modules/es-toolkit/dist/compat/array/differenceBy.mjs
generated
vendored
Normal file
24
frontend/node_modules/es-toolkit/dist/compat/array/differenceBy.mjs
generated
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
import { difference } from "../../array/difference.mjs";
|
||||
import { differenceBy as differenceBy$1 } from "../../array/differenceBy.mjs";
|
||||
import { iteratee } from "../util/iteratee.mjs";
|
||||
import { isArrayLikeObject } from "../predicate/isArrayLikeObject.mjs";
|
||||
import { last } from "./last.mjs";
|
||||
import { flattenArrayLike } from "../_internal/flattenArrayLike.mjs";
|
||||
//#region src/compat/array/differenceBy.ts
|
||||
/**
|
||||
* Computes the difference between an array and multiple arrays using an iteratee function.
|
||||
*
|
||||
* @template T
|
||||
* @param array - The primary array from which to derive the difference.
|
||||
* @param values - Multiple arrays containing elements to be excluded from the primary array.
|
||||
* @returns A new array containing the elements that are present in the primary array but not in the values arrays.
|
||||
*/
|
||||
function differenceBy(array, ..._values) {
|
||||
if (!isArrayLikeObject(array)) return [];
|
||||
const iteratee$1 = last(_values);
|
||||
const values = flattenArrayLike(_values);
|
||||
if (isArrayLikeObject(iteratee$1)) return difference(Array.from(array), values);
|
||||
return differenceBy$1(Array.from(array), values, iteratee(iteratee$1));
|
||||
}
|
||||
//#endregion
|
||||
export { differenceBy };
|
||||
Loading…
Add table
Add a link
Reference in a new issue