mirror of
https://github.com/crazy-max/ghaction-upx.git
synced 2024-11-22 10:26:08 -07:00
11 lines
181 B
JavaScript
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'
|
|
)
|
|
);
|