UNPKG

async-test-util

Version:

Util-functions that are be useful in async tests

13 lines (12 loc) 232 B
/** * returns true if promise is given */ export default function isPromise(value) { if ( typeof value !== 'undefined' && typeof value.then === 'function' ) { return true; } return false; }