Skip to content

Commit

Permalink
fix(elementAt): now allows falsy defaultValues
Browse files Browse the repository at this point in the history
  • Loading branch information
benlesh committed Mar 30, 2018
1 parent 5a9d7dd commit 13706e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compat/operator/elementAt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ import { elementAt as higherOrder } from 'rxjs/operators';
* @owner Observable
*/
export function elementAt<T>(this: Observable<T>, index: number, defaultValue?: T): Observable<T> {
return higherOrder(index, defaultValue)(this);
return higherOrder.apply(undefined, arguments)(this);
}

0 comments on commit 13706e7

Please sign in to comment.