mirror of
https://github.com/crazy-max/ghaction-upx.git
synced 2024-11-25 11:46:09 -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'
|
|
)
|
|
);
|