Skip to content

Commit

Permalink
feat(takeWhile): Reverted the backward compatibility changes as reque…
Browse files Browse the repository at this point in the history
…sted.
  • Loading branch information
idosela committed Sep 19, 2018
1 parent 4df8f1e commit cc38746
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions compat/operator/takeWhile.ts
Expand Up @@ -34,13 +34,9 @@ import { takeWhile as higherOrder } from 'rxjs/operators';
* @return {Observable<T>} An Observable that emits the values from the source
* Observable so long as each value satisfies the condition defined by the
* `predicate`, then completes.
* @param {boolean} inclusive When set to `true` the value that caused
* `predicate` to return `false` will also be emitted.
* @method takeWhile
* @owner Observable
*/
export function takeWhile<T>(this: Observable<T>,
predicate: (value: T, index: number) => boolean,
inclusive?: boolean): Observable<T> {
return higherOrder<T>(predicate, inclusive)(this);
export function takeWhile<T>(this: Observable<T>, predicate: (value: T, index: number) => boolean): Observable<T> {
return higherOrder(predicate)(this);
}

0 comments on commit cc38746

Please sign in to comment.