reports/frontend/node_modules/es-toolkit/dist/compat/array/reverse.d.ts
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

19 lines
No EOL
578 B
TypeScript

import { MutableList } from "../_internal/MutableList.js";
import { RejectReadonly } from "../_internal/RejectReadonly.js";
//#region src/compat/array/reverse.d.ts
/**
* Reverses `array` so that the first element becomes the last, the second element becomes the second to last, and so on.
*
* @template L
* @param array - The array to reverse.
* @returns Returns `array`.
*
* @example
* const array = [1, 2, 3];
* reverse(array);
* // => [3, 2, 1]
*/
declare function reverse<L extends MutableList<any>>(array: RejectReadonly<L>): L;
//#endregion
export { reverse };