@naverpay/hidash
Version:
improved lodash
11 lines (9 loc) • 314 B
TypeScript
/**
* Reverses the order of elements in an array `in place` and returns the reversed array.
*
* @template T
* @param {T[]} array - The array to reverse.
* @returns {T[]} The same array with elements in reversed order.
*/
declare function reverse<T>(array: T[]): T[];
export { reverse as default, reverse };