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/array/drop.js
generated
vendored
Normal file
23
frontend/node_modules/es-toolkit/dist/array/drop.js
generated
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
//#region src/array/drop.ts
|
||||
/**
|
||||
* Removes a specified number of elements from the beginning of an array and returns the rest.
|
||||
*
|
||||
* This function takes an array and a number, and returns a new array with the specified number
|
||||
* of elements removed from the start.
|
||||
*
|
||||
* @template T - The type of elements in the array.
|
||||
* @param arr - The array from which to drop elements.
|
||||
* @param itemsCount - The number of elements to drop from the beginning of the array.
|
||||
* @returns A new array with the specified number of elements removed from the start.
|
||||
*
|
||||
* @example
|
||||
* const array = [1, 2, 3, 4, 5];
|
||||
* const result = drop(array, 2);
|
||||
* // result will be [3, 4, 5] since the first two elements are dropped.
|
||||
*/
|
||||
function drop(arr, itemsCount) {
|
||||
itemsCount = Math.max(itemsCount, 0);
|
||||
return arr.slice(itemsCount);
|
||||
}
|
||||
//#endregion
|
||||
exports.drop = drop;
|
||||
Loading…
Add table
Add a link
Reference in a new issue