芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/app.optimyar.com/backend/node_modules/rxjs/src/internal/util/isPromise.ts
/** * Tests to see if the object is an ES2015 (ES6) Promise * @see {@link https://www.ecma-international.org/ecma-262/6.0/#sec-promise-objects} * @param value the object to test */ export function isPromise(value: any): value is PromiseLike
{ return !!value && typeof (
value).subscribe !== 'function' && typeof (value as any).then === 'function'; }