theta-client-react-native
Version:
This library provides a way to control RICOH THETA using.
13 lines (12 loc) • 395 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.isPromiseLike = isPromiseLike;
/**
* Type guard to check if a value is promise-like (has a `then` method).
*/
function isPromiseLike(value) {
return value != null && (typeof value === 'object' || typeof value === 'function') && typeof value.then === 'function';
}
//# sourceMappingURL=type-guards.js.map