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/uniq.js
generated
vendored
Normal file
24
frontend/node_modules/es-toolkit/dist/compat/array/uniq.js
generated
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
const require_uniq = require("../../array/uniq.js");
|
||||
const require_isArrayLike = require("../predicate/isArrayLike.js");
|
||||
//#region src/compat/array/uniq.ts
|
||||
/**
|
||||
* Creates a duplicate-free version of an array.
|
||||
*
|
||||
* This function takes an array and returns a new array containing only the unique values
|
||||
* from the original array, preserving the order of first occurrence.
|
||||
*
|
||||
* @template T - The type of elements in the array.
|
||||
* @param arr - The array to process.
|
||||
* @returns A new array with only unique values from the original array.
|
||||
*
|
||||
* @example
|
||||
* const array = [1, 2, 2, 3, 4, 4, 5];
|
||||
* const result = uniq(array);
|
||||
* // result will be [1, 2, 3, 4, 5]
|
||||
*/
|
||||
function uniq(arr) {
|
||||
if (!require_isArrayLike.isArrayLike(arr)) return [];
|
||||
return require_uniq.uniq(Array.from(arr));
|
||||
}
|
||||
//#endregion
|
||||
exports.uniq = uniq;
|
||||
Loading…
Add table
Add a link
Reference in a new issue