import { typeOf } from 'ember-utils';
import isObject from './is-object';

function isPromiseLike(obj = {}) {
  return typeOf(obj.then) === 'function' &&
    typeOf(obj.catch) === 'function' &&
    typeOf(obj.finally) === 'function';
}

export default function isPromise(obj) {
  return isObject(obj) && isPromiseLike(obj);
}

@@ -176,50 +176,8 @@
  ===
- 'function' &&%0A    typeOf(obj.finally) ===
  'fu

Update is-promise.js (#248)