Swap-Aggregator-Subgraph/node_modules/is-promise/index.js
Richa-iitr d211083153 Revert "Revert "added handler""
This reverts commit c36ee8c5ca.
2022-07-03 07:30:05 +05:30

5 lines
108 B
JavaScript

module.exports = isPromise;
function isPromise(obj) {
return obj && typeof obj.then === 'function';
}