@web3r/flowerkit
Version:
A collection of more than 60 often used utility JS functions that simplify frontend development.
13 lines • 347 B
TypeScript
/**
* Checks if an object is promise
* @param obj{*} - source object
* @return {boolean}
* @example
* // How to check if an object is promise?
* const obj = new Promise();
* const isPromise = isObjPromise(obj);
* console.log(isPromise); // => true
*
*/
export function isObjPromise(obj: any): boolean;
//# sourceMappingURL=index.d.ts.map