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/flatMapDepth.mjs
generated
vendored
Normal file
24
frontend/node_modules/es-toolkit/dist/compat/array/flatMapDepth.mjs
generated
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
import { identity } from "../../function/identity.mjs";
|
||||
import { iteratee } from "../util/iteratee.mjs";
|
||||
import { flatten } from "./flatten.mjs";
|
||||
import { map } from "./map.mjs";
|
||||
//#region src/compat/array/flatMapDepth.ts
|
||||
/**
|
||||
* Creates a flattened array of values by running each element through iteratee and flattening the mapped results up to depth times.
|
||||
*
|
||||
* @template T, R
|
||||
* @param collection - The array or object to iterate over.
|
||||
* @param [iteratee] - The function that produces the new array elements.
|
||||
* @param [depth=1] - The maximum recursion depth.
|
||||
* @returns A new array that has been flattened up to the specified depth.
|
||||
*
|
||||
* @example
|
||||
* flatMapDepth([1, 2, 3], n => [[n, n]], 2);
|
||||
* // => [1, 1, 2, 2, 3, 3]
|
||||
*/
|
||||
function flatMapDepth(collection, iteratee$1 = identity, depth = 1) {
|
||||
if (collection == null) return [];
|
||||
return flatten(map(collection, iteratee(iteratee$1)), depth);
|
||||
}
|
||||
//#endregion
|
||||
export { flatMapDepth };
|
||||
Loading…
Add table
Add a link
Reference in a new issue