UNPKG

typenexus

Version:

TypeNexus is a good tool for API encapsulation and management. It provides a clean and lightweight way to package TypeORM functionality, helping you build applications faster while reducing template code redundancy and type conversion work.

7 lines (6 loc) 207 B
/** * Checks if given value is a Promise-like object. */ export function isPromiseLike(arg: any): arg is Promise<any> { return arg != null && typeof arg === 'object' && typeof arg.then === 'function'; }