minor adjustment to readme
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / rxjs / src / internal / util / isPromise.ts
1 /**
2  * Tests to see if the object is an ES2015 (ES6) Promise
3  * @see {@link https://www.ecma-international.org/ecma-262/6.0/#sec-promise-objects}
4  * @param value the object to test
5  */
6 export function isPromise(value: any): value is PromiseLike<any> {
7   return !!value && typeof (<any>value).subscribe !== 'function' && typeof (value as any).then === 'function';
8 }