Code coverage report for src/util/isPromise.ts

Statements: 100% (3 / 3)      Branches: 100% (3 / 3)      Functions: 100% (1 / 1)      Lines: 100% (2 / 2)      Ignored: none     

All files » src/util/ » isPromise.ts
1 2 31 189  
export function isPromise(value: any): boolean {
  return value && typeof value.subscribe !== 'function' && typeof value.then === 'function';
}