ts-prime
Version:
A utility library for JavaScript and Typescript.
15 lines • 425 B
TypeScript
/**
* Reverses array.
* @param array the array
* @signature
* P.reverse(arr);
* @signature
* P.reverse()(array);
* @example
* P.reverse([1, 2, 3]) // [3, 2, 1]
* P.reverse()([1, 2, 3]) // [3, 2, 1]
* @category Array, Pipe
*/
export declare function reverse<T>(array: readonly T[]): Array<T>;
export declare function reverse<T>(): (array: readonly T[]) => Array<T>;
//# sourceMappingURL=reverse.d.ts.map