ghaction-upx/node_modules/p-is-promise/index.js
2020-01-17 09:39:25 +01:00

11 lines
181 B
JavaScript

'use strict';
module.exports = x => (
x instanceof Promise ||
(
x !== null &&
typeof x === 'object' &&
typeof x.then === 'function' &&
typeof x.catch === 'function'
)
);