lix-website/themes/lix/assets/bootstrap/node_modules/p-is-promise/index.js
2024-04-26 22:49:34 -06: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'
)
);