diff --git a/src/internal/operators/distinct.ts b/src/internal/operators/distinct.ts index 7f17518483..b48fe6dc54 100644 --- a/src/internal/operators/distinct.ts +++ b/src/internal/operators/distinct.ts @@ -6,10 +6,6 @@ import { InnerSubscriber } from '../InnerSubscriber'; import { subscribeToResult } from '../util/subscribeToResult'; import { MonoTypeOperatorFunction, TeardownLogic } from '../types'; -if (!Set) { - throw new Error('Set is not present, please polyfill'); -} - /** * Returns an Observable that emits all items emitted by the source Observable that are distinct by comparison from previous items. * diff --git a/src/internal/operators/groupBy.ts b/src/internal/operators/groupBy.ts index 3830d1e736..fd6ab94f90 100644 --- a/src/internal/operators/groupBy.ts +++ b/src/internal/operators/groupBy.ts @@ -5,11 +5,6 @@ import { Operator } from '../Operator'; import { Subject } from '../Subject'; import { OperatorFunction } from '../types'; -/** Assert that map is present for this operator */ -if (!Map) { - throw new Error('Map not found, please polyfill'); -} - /* tslint:disable:max-line-length */ export function groupBy(keySelector: (value: T) => K): OperatorFunction>; export function groupBy(keySelector: (value: T) => K, elementSelector: void, durationSelector: (grouped: GroupedObservable) => Observable): OperatorFunction>;