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
25
frontend/node_modules/es-toolkit/dist/compat/array/head.mjs
generated
vendored
Normal file
25
frontend/node_modules/es-toolkit/dist/compat/array/head.mjs
generated
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
import { head as head$1 } from "../../array/head.mjs";
|
||||
import { toArray } from "../_internal/toArray.mjs";
|
||||
import { isArrayLike } from "../predicate/isArrayLike.mjs";
|
||||
//#region src/compat/array/head.ts
|
||||
/**
|
||||
* Returns the first element of an array or `undefined` if the array is empty.
|
||||
*
|
||||
* This function takes an array and returns the first element of the array.
|
||||
* If the array is empty, the function returns `undefined`.
|
||||
*
|
||||
* @template T - The type of elements in the array.
|
||||
* @param arr - The array from which to get the first element.
|
||||
* @returns The first element of the array, or `undefined` if the array is empty.
|
||||
*
|
||||
* @example
|
||||
* const emptyArr: number[] = [];
|
||||
* const noElement = head(emptyArr);
|
||||
* // noElement will be undefined
|
||||
*/
|
||||
function head(arr) {
|
||||
if (!isArrayLike(arr)) return;
|
||||
return head$1(toArray(arr));
|
||||
}
|
||||
//#endregion
|
||||
export { head };
|
||||
Loading…
Add table
Add a link
Reference in a new issue