UNPKG

@rxjs-ninja/rxjs-array

Version:

Operators for RxJS for filtering with boolean logic

23 lines (22 loc) 645 B
/** * @packageDocumentation * @module Array */ import { OperatorFunction } from 'rxjs'; /** * Returns an Observable array where the source array contains boolean values, and flips the value to the opposite * boolean. * * @category Modify * * @example * Returns an array of all binary values flipped * ```ts * const input = [false, true, false]; * of(input).pipe(flipArray()).subscribe(); * ``` * Output: `[true, false, true]` * * @returns Observable array of boolean values that are flipped from their original value */ export declare function flipArray(): OperatorFunction<Iterable<boolean>, boolean[]>;