source: trip-planner-front/node_modules/yargs/build/lib/utils/is-promise.js@ eed0bf8

Last change on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 155 bytes
Line 
1export function isPromise(maybePromise) {
2 return (!!maybePromise &&
3 !!maybePromise.then &&
4 typeof maybePromise.then === 'function');
5}
Note: See TracBrowser for help on using the repository browser.