UNPKG

softkave-js-utils

Version:

JavaScript & Typescript utility functions, types, and classes

7 lines 263 B
export function isPromiseLike(value) { return typeof value === 'object' && value !== null && 'then' in value; } export function isPromise(value) { return isPromiseLike(value) && typeof value.then === 'function'; } //# sourceMappingURL=isPromiseLike.js.map