Skip to content

Commit

Permalink
fix(combineLatest): Don't mutate array of observables passed to
Browse files Browse the repository at this point in the history
combineLatest

lease enter the commit message for your changes. Lines starting
  • Loading branch information
Andrew Harward committed Jan 13, 2017
1 parent f8ba77d commit f6bb9ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operator/combineLatest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export function combineLatest<T, R>(this: Observable<T>, ...observables: Array<O
// if the first and only other argument besides the resultSelector is an array
// assume it's been called with `combineLatest([obs1, obs2, obs3], project)`
if (observables.length === 1 && isArray(observables[0])) {
observables = <any>observables[0];
observables = (<any>observables[0]).slice();
}

observables.unshift(this);
Expand Down

0 comments on commit f6bb9ca

Please sign in to comment.