@rxjs-ninja/rxjs-array
Version:
Operators for RxJS for filtering with boolean logic
24 lines (23 loc) • 668 B
TypeScript
/**
* @packageDocumentation
* @module Array
*/
import { OperatorFunction } from 'rxjs';
/**
* Returns an Observable that emits array taking the source and running the result of Array.reverse
*
* @category Modify
*
* @typeParam T Item type contained in the Array or Set
*
* @example
* Reverse an array of values
* ```ts
* const input = ['Hello', 'RxJS', 'Ninja'];
* of(input).pipe(reverse()).subscribe();
* ```
* Output: `['Ninja', 'RxJS', 'Hello']`
*
* @returns Observable that emits an array which is reversed from the source array
*/
export declare function reverse<T extends unknown>(): OperatorFunction<Iterable<T>, T[]>;