UNPKG

ngx-ordered-initializer

Version:

An Angular DI token that you can use to provide one or more initialization functions that will be executed in order

4 lines (3 loc) 121 B
export function isPromise<T = any>(obj: any): obj is Promise<T> { return !!obj && typeof obj.then === "function"; }