@rxjs-ninja/rxjs-array
Version:
Operators for RxJS for filtering with boolean logic
23 lines (22 loc) • 596 B
TypeScript
/**
* @packageDocumentation
* @module Array
*/
import { OperatorFunction } from 'rxjs';
/**
* Returns an Observable that emits an Array from a source Set.
*
* @category Set
*
* @typeParam T The type of value contained in the Set
*
* @example Convert a Set into an Array
* ```ts
* const input = new Set([1, 1, 2, 3, 3, 4, 5]);
* of(input).pipe(setToArray()).subscribe();
* ```
* Output: `[1, 2, 3, 4, 5]`
*
* @returns Observable that emits a Array from a source Set
*/
export declare function setToArray<T extends unknown>(): OperatorFunction<Set<T>, T[]>;