mirror of
https://github.com/MrUnknownDE/UnknownBot.git
synced 2026-04-09 17:43:44 +02: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'
|
|
)
|
|
);
|