6 lines
170 B
JavaScript
6 lines
170 B
JavaScript
import { getType } from './getType.js';
|
|
/** Returns whether the payload is a Promise */
|
|
export function isPromise(payload) {
|
|
return getType(payload) === 'Promise';
|
|
}
|