isScheduler.ts 174 Bytes
Newer Older
liang ce committed
1 2 3 4 5
import { SchedulerLike } from '../types';

export function isScheduler(value: any): value is SchedulerLike {
  return value && typeof (<any>value).schedule === 'function';
}