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
23
frontend/node_modules/es-toolkit/dist/compat/object/findKey.mjs
generated
vendored
Normal file
23
frontend/node_modules/es-toolkit/dist/compat/object/findKey.mjs
generated
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import { findKey as findKey$1 } from "../../object/findKey.mjs";
|
||||
import { isObject } from "../predicate/isObject.mjs";
|
||||
import { iteratee } from "../util/iteratee.mjs";
|
||||
import { identity } from "../function/identity.mjs";
|
||||
//#region src/compat/object/findKey.ts
|
||||
/**
|
||||
* Finds the key of the first element that matches the given predicate.
|
||||
*
|
||||
* This function determines the type of the predicate and delegates the search
|
||||
* to the appropriate helper function. It supports predicates as functions, objects,
|
||||
* arrays, or strings.
|
||||
*
|
||||
* @template T - The type of the object.
|
||||
* @param obj - The object to inspect.
|
||||
* @param predicate - The predicate to match.
|
||||
* @returns Returns the key of the matched element, else `undefined`.
|
||||
*/
|
||||
function findKey(obj, predicate) {
|
||||
if (!isObject(obj)) return;
|
||||
return findKey$1(obj, iteratee(predicate ?? identity));
|
||||
}
|
||||
//#endregion
|
||||
export { findKey };
|
||||
Loading…
Add table
Add a link
Reference in a new issue