UNPKG

util-ex

Version:

Browser-friendly enhanced util fully compatible with standard node.js

8 lines (7 loc) 277 B
/** * Checks if a given value is an asynchronous function or a Promise. * * @param {*} value - The value to check. * @returns {boolean} - Returns true if the value is an asynchronous function or a Promise, otherwise false. */ export function isAsync(value: any): boolean;