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/unzip.js
generated
vendored
Normal file
25
frontend/node_modules/es-toolkit/dist/compat/array/unzip.js
generated
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
const require_unzip = require("../../array/unzip.js");
|
||||
const require_isArray = require("../predicate/isArray.js");
|
||||
const require_isArrayLikeObject = require("../predicate/isArrayLikeObject.js");
|
||||
//#region src/compat/array/unzip.ts
|
||||
/**
|
||||
* Gathers elements in the same position in an internal array
|
||||
* from a grouped array of elements and returns them as a new array.
|
||||
*
|
||||
* @template T - The type of elements in the nested array.
|
||||
* @param array - The nested array to unzip.
|
||||
* @returns A new array of unzipped elements.
|
||||
*
|
||||
* @example
|
||||
* const zipped = [['a', true, 1],['b', false, 2]];
|
||||
* const result = unzip(zipped);
|
||||
* // result will be [['a', 'b'], [true, false], [1, 2]]
|
||||
*/
|
||||
function unzip(array) {
|
||||
if (!require_isArrayLikeObject.isArrayLikeObject(array) || !array.length) return [];
|
||||
array = require_isArray.isArray(array) ? array : Array.from(array);
|
||||
array = array.filter((item) => require_isArrayLikeObject.isArrayLikeObject(item));
|
||||
return require_unzip.unzip(array);
|
||||
}
|
||||
//#endregion
|
||||
exports.unzip = unzip;
|
||||
Loading…
Add table
Add a link
Reference in a new issue