reports/frontend/node_modules/es-toolkit/dist/compat/array/tail.d.mts
jtricerolph 1c411e402e Add settings page for managing forecasting API key and URL via UI
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-20 14:37:36 +00:00

27 lines
No EOL
615 B
TypeScript

//#region src/compat/array/tail.d.ts
/**
* Gets all but the first element of array.
*
* @template T
* @param array - The array to query.
* @returns Returns the slice of array.
*
* @example
* tail([1, 2, 3]);
* // => [2, 3]
*/
declare function tail<T extends unknown[]>(array: readonly [unknown, ...T]): T;
/**
* Gets all but the first element of array.
*
* @template T
* @param array - The array to query.
* @returns Returns the slice of array.
*
* @example
* tail([1, 2, 3]);
* // => [2, 3]
*/
declare function tail<T>(array: ArrayLike<T> | null | undefined): T[];
//#endregion
export { tail };